Environment
小程序
Reproduction link
https://weapp.iviewui.com/components/switch
Steps to reproduce
使用i-switch开关,设置disabled=true,设置value=true,效果为关闭状态
What is expected?
开关为开启状态
What is actually happening?
开关为关闭状态
这种场景大多在详情页面有这个需求,不允许修改,但是要求能看到状态
小程序
https://weapp.iviewui.com/components/switch
使用i-switch开关,设置disabled=true,设置value=true,效果为关闭状态
开关为开启状态
开关为关闭状态
这种场景大多在详情页面有这个需求,不允许修改,但是要求能看到状态
3条答案
按热度按时间edqdpe6u1#
Translation of this issue:
Environment
Small program
Reproduction link
https://weapp.iviewui.com/components/switch
Steps to reproduce
Use the i-switch switch switch, set disabled = true, set value = true, the effect is closed
What is expected?
Switch on
What is actually happening?
Switch is closed
Most of these scenarios have this requirement on the details page, and no modification is allowed, but the state is required to be visible.
yvt65v4c2#
没有发现问题,可以实现效果
https://run.iviewui.com/B5GEbQuf
izkcnapc3#
不出意外的话是你没有使用: