import { PageContainer, Pages } from '@lydxwj/react-fullpage';import '@lydxwj/react-fullpage/lib/css/styles.css';<PageContainer onChange={(nowIdx, newIdx) => { console.log(nowIdx); console.log(newIdx);}} onChangeEnd={(nowIdx) => { console.log(nowIdx);}}> <Pages style={{ backgroundColor: '#51eabe', }}></Pages> <Pages style={{ backgroundColor: '#f4ea2a', }}></Pages> <Pages style={{ backgroundColor: '#1afa29', }}></Pages> <Pages style={{ backgroundColor: '#1296db', }}></Pages></PageContainer>
请发表评论