[Enhancement] [segmented] The "el-segmented" control cannot return to the unselected state through binding values after an option is selected. #18803
haifenggo
started this conversation in
Feature Request
Replies: 4 comments 1 reply
-
|
没有吧,我看着是正常的: segmented demo |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
确实是个 BUG ,你去提个 issues 吧 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
看看这样是不是可以了呢: demo |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
确实有问题,#18818 这个pr 会处理这个问题 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature type:
EnhancementDetails
segmentedDescription
The "el-segmented" control can default to having no option selected, but once an option is selected, it cannot be returned to the unselected state; that is to say, the highlight cannot be removed. Setting the model-value/v-model binding to null or undefined does not work; only the text color changes from white to black when selected, but the default background remains blue.
el-segmented默认可以未选中任何一个选项,但是一旦选中一个选项后,无法通过来恢复到未选择状态,也就是说无法去除高亮状态。model-value/v-model绑定值设为null和undifined都不行,只有字体从选中状态的白色转为黑色,但默认背景仍是蓝色。
Additional comments
(empty)
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions