1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| import { View, Swiper, SwiperItem } from '@tarojs/components' import { ReactNode, Component } from 'react' import './index.scss'
export default class Index extends Component {
render() { return ( <Swiper className='test-h' indicatorColor='#999' indicatorActiveColor='#333' vertical circular indicatorDots autoplay> <SwiperItem> <View className='demo-text-1'>1</View> </SwiperItem> <SwiperItem> <View className='demo-text-2'>2</View> </SwiperItem> <SwiperItem> <View className='demo-text-3'>3</View> </SwiperItem> </Swiper> ) } }
|