You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import '../assets/index.less';
|
|
|
|
import Slider from '../src/slider';
|
|
|
|
import imgList from './imglist';
|
|
|
|
|
|
|
|
const { abstract01, abstract02, abstract03, abstract04 } = imgList;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
render() {
|
|
|
|
const settings = {
|
|
|
|
props: {
|
|
|
|
dots: true,
|
|
|
|
fade: true,
|
|
|
|
infinite: true,
|
|
|
|
speed: 500,
|
|
|
|
slidesToShow: 1,
|
|
|
|
slidesToScroll: 1,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<h2>Fade</h2>
|
|
|
|
<Slider {...settings}>
|
|
|
|
<div>
|
|
|
|
<img src={abstract01} />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<img src={abstract02} />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<img src={abstract03} />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<img src={abstract04} />
|
|
|
|
</div>
|
|
|
|
</Slider>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
};
|