import '../assets/index.less' import Slider from '../src/slider' import imgList from './imglist' const { abstract01, abstract02, abstract03, abstract04, } = imgList export default { data () { return { slideIndex: 0, updateCount: 0, } }, render () { const settings = { props: { dots: false, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1, afterChange: () => { this.updateCount = this.updateCount + 1 }, beforeChange: (current, next) => { this.slideIndex = next }, }, ref: 'slider', } return (
Total updates: {this.updateCount}
this.$refs.slider.slickGoTo(e.target.value)} value={this.slideIndex} type='range' min={0} max={3} />