uni-app uni-collapse组件第0项在某些情况下change参数不正确
uni-app uni-collapse组件第0项在某些情况下change参数不正确
项目信息 | 详细信息 |
---|---|
产品分类 | uniapp/小程序/微信 |
PC开发环境操作系统 | Windows |
PC开发环境操作系统版本号 | win10 |
HBuilderX类型 | 正式 |
HBuilderX版本号 | 3.1.2 |
第三方开发者工具版本号 | 1.052102010 |
基础库版本号 | 2.14 |
项目创建方式 | HBuilderX |
操作步骤:
- 当uni-collapse-item的name设为0,且第0项用v-if切换过可见时,change的参数不对
预期结果:
- 本应是0,
实际结果:
- 实际是item的长度
bug描述:
bug: 当uni-collapse-item的name设为0,且第0项用v-if切换过可见时,change的参数不对,本应是0,实际是item的长度。 解决: 把uni-collapse.vue中
this.nameSync = this.name ? this.name : this.collapse.childrens.length
改为
this.nameSync = this.name!=null ? this.name : this.collapse.childrens.length
更多关于uni-app uni-collapse组件第0项在某些情况下change参数不正确的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于uni-app uni-collapse组件第0项在某些情况下change参数不正确的实战教程也可以访问 https://www.itying.com/category-93-b0.html
更新组件,问题已经修复