|
|
|
@ -165,13 +165,18 @@ const searchInputProps = computed(() => { |
|
|
|
}; |
|
|
|
}); |
|
|
|
|
|
|
|
function updateCurrentSelect(v: string) { |
|
|
|
currentSelect.value = v; |
|
|
|
} |
|
|
|
|
|
|
|
defineExpose({ toggleOpenState, open, close }); |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
<VbenPopover |
|
|
|
v-model:open="visible" |
|
|
|
:content-props="{ align: 'end', alignOffset: -11, sideOffset: 8 }" |
|
|
|
content-class="p-0 pt-3" |
|
|
|
content-class="p-0 pt-3 w-full" |
|
|
|
trigger-class="w-full" |
|
|
|
> |
|
|
|
<template #trigger> |
|
|
|
<template v-if="props.type === 'input'"> |
|
|
|
@ -183,6 +188,7 @@ defineExpose({ toggleOpenState, open, close }); |
|
|
|
role="combobox" |
|
|
|
:aria-label="$t('ui.iconPicker.placeholder')" |
|
|
|
aria-expanded="visible" |
|
|
|
:[`onUpdate:${modelValueProp}`]="updateCurrentSelect" |
|
|
|
v-bind="$attrs" |
|
|
|
> |
|
|
|
<template #[iconSlot]> |
|
|
|
|