Closed jirentech closed 1 year ago
动态数据?怎么样使用动态数据,可以参考 https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html 提供代码片段协助定位问题
动态数据?怎么样使用动态数据,可以参考 https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html 提供代码片段协助定位问题
动态数据就是使用网络请求获取到的数据
提供一个小程序代码片段吧,网络请求可以用 setTimeout 模拟
this.selectComponent('#xxx').resize()
应该是可以暂时解决掉这个问题,之前用过这个方式
@landluck 小程序代码片段 https://developers.weixin.qq.com/s/eVv6XEmw7QFD
问题已定位到,this.selectComponent('#xxx').resize() 可以临时解决,后续会修复
@johnsonwong666
v1.10.19
版本已修复
重现链接
<van-tabs swipeable sticky :active="active" @change="onChange">
Vant Weapp 版本
v1.10.7
描述一下你遇到的问题。
[tab标签组件在使用动态数据的时候,默认的active,即第一个选择状态的下标线会偏移到最左侧]
重现步骤
tab标签组件在使用动态数据(动态数据通过网络请求获得)的时候,即第一个选中状态的下标线会偏移到最左侧
设备/浏览器
微信开发者工具,安卓手机