We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H5,小程序
浏览器版本: Chrome 100 使用框架: React
/* eslint-disable jsx-quotes */ import { Component } from "react"; import { View, Swiper, SwiperItem, Button } from "@tarojs/components"; import "./index.less"; export default class Index extends Component { state = { count:1, }; oncountAdd(){ this.setState({ count:this.state.count + 1 }) } render() { return ( <> <Button onClick={()=>this.oncountAdd()}>点击增加displayMultipleItems</Button> <Swiper className='test-h' indicatorColor='#999' indicatorActiveColor='#333' // vertical // circular indicatorDots displayMultipleItems={this.state.count} 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> </> ); } }
点击按钮,Swiper 显示item个数会增加
没有变化
👽 Taro v3.4.7 Taro CLI 3.4.7 environment info: System: OS: Windows 10 Binaries: Node: 14.18.1 - D:\Program Files\nodejs\node.EXE npm: 6.14.15 - D:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
fix(components): 新增 swiper 重置条件 fix #11765
0e4bf20
RN displayMultipleItems不生效
Sorry, something went wrong.
No branches or pull requests
相关平台
H5,小程序
浏览器版本: Chrome 100
使用框架: React
复现步骤
期望结果
点击按钮,Swiper 显示item个数会增加
实际结果
没有变化
环境信息
The text was updated successfully, but these errors were encountered: