Select: optimize performance of long option list (#4444)

pull/4471/head
杨奕 2017-04-26 00:08:15 +08:00 committed by baiyaaaaa
parent 0607fd9df3
commit 92b4156aaa
2 changed files with 2 additions and 3 deletions

View File

@ -6,8 +6,7 @@
v-show="visible" v-show="visible"
:class="{ :class="{
'selected': itemSelected, 'selected': itemSelected,
'is-disabled': disabled || groupDisabled || limitReached, 'is-disabled': disabled || groupDisabled || limitReached
'hover': parent.hoverIndex === index
}"> }">
<slot> <slot>
<span>{{ currentLabel }}</span> <span>{{ currentLabel }}</span>

View File

@ -26,7 +26,7 @@
} }
} }
&.hover { &.hover, &:hover {
background-color: var(--select-option-hover-background); background-color: var(--select-option-hover-background);
} }