import '../assets/index.less'; import Slider from '../src/slider'; export default { data() { return { activeSlide: 0, activeSlide2: 0, }; }, render() { const settings = { props: { dots: true, infinite: true, speed: 1000, slidesToShow: 1, slidesToScroll: 1, beforeChange: (current, next) => { this.activeSlide = next; }, afterChange: current => { this.activeSlide2 = current; }, }, }; return (

beforeChange and afterChange hooks

BeforeChange => activeSlide: {this.activeSlide}

AfterChange => activeSlide: {this.activeSlide2}

1

2

3

4

5

6

); }, };