<uni-collapse :accordion="true">
<uni-collapse-item title="标题文字1">
<text class="content">折叠内容主体,可自定义内容及样式</text>
</uni-collapse-item>
<uni-collapse-item title="标题文字2"
thumb="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png"
:show-animation="true">
<text class="content">折叠内容主体,可自定义内容及样式</text>
</uni-collapse-item>
<uni-collapse-item title="标题文字3" :disabled="true" :open="true">
<text class="content">默认展开xxxxxxxxxxx</text>
</uni-collapse-item>
</uni-collapse> - 发布:2022-09-09 11:00
- 更新:2022-09-09 11:56
- 阅读:699
产品分类: uniapp/小程序/微信
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 19043.1949
HBuilderX类型: 正式
HBuilderX版本号: 3.5.3
第三方开发者工具版本号: 1.06.2208010
基础库版本号: 2.23.2
项目创建方式: HBuilderX
示例代码:
操作步骤:
放入代码后控制台报错 ‘data field "open" is overwritten by property with the same name’和‘Method "open" has already been defined as a prop.’
放入代码后控制台报错 ‘data field "open" is overwritten by property with the same name’和‘Method "open" has already been defined as a prop.’
预期结果:
不应该报错
不应该报错
实际结果:
控制台报data field "open" is overwritten by property with the same name和Method "open" has already been defined as a prop.
控制台报data field "open" is overwritten by property with the same name和Method "open" has already been defined as a prop.
bug描述:
uniapp uni-collapse 折叠面板 小程序端报错
报 :data field "open" is overwritten by property with the same name (when preparing "uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item").
Method "open" has already been defined as a prop.