improvement: [select] optimize the effect of keyboard switching options (#18773)

* improvement: [select] optimize the effect of keyboard switching options

* fix: apply to select-v2
This commit is contained in:
btea 2024-11-07 21:57:38 +08:00 committed by GitHub
parent 3eb734ccc4
commit 906141b4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
ns.is('created', created),
ns.is('hovering', hovering),
]"
@mouseenter="hoverItem"
@mousemove="hoverItem"
@click.stop="selectOptionClick"
>
<slot :item="item" :index="index" :disabled="disabled">

View File

@ -6,7 +6,7 @@
role="option"
:aria-disabled="isDisabled || undefined"
:aria-selected="itemSelected"
@mouseenter="hoverItem"
@mousemove="hoverItem"
@click.stop="selectOptionClick"
>
<slot>