mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 00:15:05 +01:00
chore(Dropdown): handle item hover
Co-Authored-By: Sébastien Chopin <seb@nuxtjs.com>
This commit is contained in:
@@ -83,7 +83,7 @@
|
||||
Dropdown with avatar:
|
||||
</div>
|
||||
|
||||
<UDropdown :items="customDropdownItems" placement="bottom-end">
|
||||
<UDropdown :items="customDropdownItems" placement="bottom-end" @hover="onHover">
|
||||
<button class="flex">
|
||||
<UAvatar src="https://picsum.photos/200/300" />
|
||||
</button>
|
||||
@@ -274,6 +274,10 @@ function onSubmit () {
|
||||
console.warn('submit')
|
||||
}
|
||||
|
||||
function onHover (item) {
|
||||
console.log(item)
|
||||
}
|
||||
|
||||
const dropdownItems = [
|
||||
[{
|
||||
label: 'Edit',
|
||||
|
||||
Reference in New Issue
Block a user