mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 20:28:52 +08:00
Select: optimize performance of long option list (#4444)
This commit is contained in:
parent
0607fd9df3
commit
92b4156aaa
@ -6,8 +6,7 @@
|
||||
v-show="visible"
|
||||
:class="{
|
||||
'selected': itemSelected,
|
||||
'is-disabled': disabled || groupDisabled || limitReached,
|
||||
'hover': parent.hoverIndex === index
|
||||
'is-disabled': disabled || groupDisabled || limitReached
|
||||
}">
|
||||
<slot>
|
||||
<span>{{ currentLabel }}</span>
|
||||
|
@ -26,7 +26,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
&.hover {
|
||||
&.hover, &:hover {
|
||||
background-color: var(--select-option-hover-background);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user