[t-switch] 无法切换状态
tdesign 版本
0.18.0
重现链接
No response
重现步骤
使用官网的例子依然无法切换状态
<view class="group">
<t-cell title="默认">
<t-switch defaultValue="{{true}}" slot="note" />
</t-cell>
<t-cell title="默认关">
<t-switch defaultValue="{{false}}" slot="note" />
</t-cell>
<t-cell title="自定义颜色">
<t-switch defaultValue="{{true}}" colors="{{['#00A870']}}" slot="note" />
</t-cell>
<t-cell title="异步操作" bordered="{{false}}">
<t-switch defaultValue="{{true}}" slot="note" />
</t-cell>
</view>
报错信息如下:
property "value" of "miniprogram_npm/tdesign-miniprogram/switch/switch" received type-uncompatible value: expected <String> but get null value. Use empty string instead.
期望结果
点击能切换状态
实际结果
报错:property "value" of "miniprogram_npm/tdesign-miniprogram/switch/switch" received type-uncompatible value: expected <String> but get null value. Use empty string instead.
框架版本
小程序基础库(2.24.7)
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
👋 @willcream,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
♥️ 有劳 @94dreamer 尽快确认问题。 确认有效后将下一步计划和可能需要的时间回复给 @willcream 。
👋 @willcream,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
使用这个示例,t-cell组件也需要引入哈~~ 目前已迭代大0.19.0版本,建议使用最新版
此 Issue 被自动关闭,因为它自被标记为过时 stale 以来已闲置 7 天。