import React,{useState} from 'react'; import { Slider } from '@alifd/next'; export default () => { const [index, setIndex] = useState(0); const settings = { className: 'custom-slide', arrowPosition: 'outer' as 'outer'|'inner', dots: false, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1, onChange: function (index) { // console.log('change Slide index', index); setIndex(index+1) }, }; return (

1

2

3

4

5

6

7

8

9

); };