Fix: Actualizar UDropdown a UDropdownMenu para Nuxt UI 4
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m9s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m9s
- Cambiar UDropdown a UDropdownMenu - Cambiar :popper a :content con side/align - Cambiar click a onSelect en items del menú
This commit is contained in:
@@ -66,13 +66,13 @@
|
|||||||
@drop.prevent="handleDrop"
|
@drop.prevent="handleDrop"
|
||||||
>
|
>
|
||||||
<!-- Attachment button -->
|
<!-- Attachment button -->
|
||||||
<UDropdown :items="attachmentMenuItems" :popper="{ placement: 'top-start' }">
|
<UDropdownMenu :items="attachmentMenuItems" :content="{ side: 'top', align: 'start' }">
|
||||||
<UButton
|
<UButton
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
icon="i-lucide-paperclip"
|
icon="i-lucide-paperclip"
|
||||||
class="text-[var(--wa-text-muted)]"
|
class="text-[var(--wa-text-muted)]"
|
||||||
/>
|
/>
|
||||||
</UDropdown>
|
</UDropdownMenu>
|
||||||
|
|
||||||
<!-- Hidden file inputs -->
|
<!-- Hidden file inputs -->
|
||||||
<input
|
<input
|
||||||
@@ -206,22 +206,22 @@ const attachmentMenuItems = [
|
|||||||
[{
|
[{
|
||||||
label: 'Imagen',
|
label: 'Imagen',
|
||||||
icon: 'i-lucide-image',
|
icon: 'i-lucide-image',
|
||||||
click: () => imageInput.value?.click()
|
onSelect: () => imageInput.value?.click()
|
||||||
}],
|
}],
|
||||||
[{
|
[{
|
||||||
label: 'Video',
|
label: 'Video',
|
||||||
icon: 'i-lucide-video',
|
icon: 'i-lucide-video',
|
||||||
click: () => videoInput.value?.click()
|
onSelect: () => videoInput.value?.click()
|
||||||
}],
|
}],
|
||||||
[{
|
[{
|
||||||
label: 'Audio',
|
label: 'Audio',
|
||||||
icon: 'i-lucide-music',
|
icon: 'i-lucide-music',
|
||||||
click: () => audioInput.value?.click()
|
onSelect: () => audioInput.value?.click()
|
||||||
}],
|
}],
|
||||||
[{
|
[{
|
||||||
label: 'Documento',
|
label: 'Documento',
|
||||||
icon: 'i-lucide-file',
|
icon: 'i-lucide-file',
|
||||||
click: () => documentInput.value?.click()
|
onSelect: () => documentInput.value?.click()
|
||||||
}]
|
}]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user