Element UI version
2.13.1
OS/Browsers version
Windows 10 / Chrome 81.0.4044.138
Vue version
2.6.11
Reproduction Link
https://codepen.io/zjinxing/pen/BaoqpEW?editors=1010
Steps to reproduce
点开下拉列表,其中有两项是已经被选中,且禁止取消选中的,在列表中禁用了取消选中,但是样式不是灰色的禁用状态,点击select选择框中已选中选项上的叉号,选项被删除
What is Expected?
如果是已选中的被禁用,在列表中样式为灰色禁用状态,且在选择框中不展示叉号
What is actually happening?
列表中的样式为蓝色选中状态,而且可以通过select内标签的叉号删除选中
3条答案
按热度按时间66bbxpm51#
Translation of this issue:
Element UI version
2.13.1
OS/Browsers version
Windows 10 / Chrome 81.0.4044.138
Vue version
2.6.11
Reproduction Link
https://codepen.io/zjinxing/pen/BaoqpEW?editors=1010
Steps to reproduce
Click to open the drop-down list. There are two items that have been selected and cannot be unchecked. Unchecking is disabled in the list, but the style is not gray. Click the cross on the selected option in the select box to delete the option
What is Expected?
If the selected one is disabled, the style is gray disabled in the list, and the cross is not displayed in the selection box
What is actually happening?
The style in the list is selected in blue, and can be deleted by the cross of the label in select
guz6ccqo2#
我同样遇到这个问题
7d7tgy0s3#
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.