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
浏览器版本: All 使用框架: React
问题出在:大神级的修改【fix: swiper init error #6674】 1、创建一个 swiper 设置 circular为false,问题直接出现
可关闭circular
swiper无限循环衔接
Taro CLI 2.2.10 environment info: System: OS: macOS 10.15.2 Shell: 3.2.57 - /bin/bash Binaries: Node: 11.6.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.5 - /usr/local/bin/npm npmPackages: @tarojs/components: 2.2.10 => 2.2.10 @tarojs/components-qa: 2.2.10 => 2.2.10 @tarojs/mini-runner: 2.2.10 => 2.2.10 @tarojs/plugin-sass: 2.2.10 => 2.2.10 @tarojs/router: 2.2.10 => 2.2.10 @tarojs/taro: 2.2.10 => 2.2.10 @tarojs/taro-alipay: 2.2.10 => 2.2.10 @tarojs/taro-h5: 2.2.10 => 2.2.10 @tarojs/taro-qq: 2.2.10 => 2.2.10 @tarojs/taro-quickapp: 2.2.10 => 2.2.10 @tarojs/taro-rn: 2.2.10 => 2.2.10 @tarojs/taro-swan: 2.2.10 => 2.2.10 @tarojs/taro-tt: 2.2.10 => 2.2.10 @tarojs/taro-weapp: 2.2.10 => 2.2.10 @tarojs/webpack-runner: 2.2.10 => 2.2.10 eslint-config-taro: 2.2.10 => 2.2.10 eslint-plugin-taro: 2.2.10 => 2.2.10 nerv-devtools: ^1.5.7 => 1.5.7 nervjs: ^1.5.7 => 1.5.7 stylelint-config-taro-rn: 2.2.10 => 2.2.10 stylelint-taro-rn: 2.2.10 => 2.2.10
大神级的修改【fix: swiper init error #6674】
应该修改为 ` componentDidUpdate (preProps) { if (this.props.circular && preProps.children.length === 0 && this.props.children.length > 0) { this.mySwiper.loopDestroy() this.mySwiper.loopCreate() }
`
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
unified with wechat swiper circular fix #6277 (#6326) (4b6cf4e) 是这个提交的问题吧
该调整是为了与小程序保持一致,circular 参数决定的并非是是否能够循环,而是循环发生时,实际的动画样式
unified with wechat swiper circular fix #6277 (#6326) (4b6cf4e) 是这个提交的问题吧 该调整是为了与小程序保持一致,circular 参数决定的并非是是否能够循环,而是循环发生时,实际的动画样式
就是这个改动的问题
ZakaryCode
No branches or pull requests
相关平台
H5
浏览器版本: All
使用框架: React
复现步骤
问题出在:大神级的修改【fix: swiper init error #6674】
1、创建一个 swiper 设置 circular为false,问题直接出现
期望结果
可关闭circular
实际结果
swiper无限循环衔接
环境信息
补充信息
大神级的修改【fix: swiper init error #6674】
应该修改为
`
componentDidUpdate (preProps) {
if (this.props.circular && preProps.children.length === 0 && this.props.children.length > 0) {
this.mySwiper.loopDestroy()
this.mySwiper.loopCreate()
}
`
The text was updated successfully, but these errors were encountered: