fix(CommandPalette): override of closeButton and emptyState props

This commit is contained in:
Benjamin Canac
2023-06-01 17:15:04 +02:00
parent 192b0e6301
commit 2c673f5377

View File

@@ -20,7 +20,7 @@
<UButton
v-if="closeButton"
v-bind="closeButton"
v-bind="{ ...ui.default.closeButton, ...closeButton }"
:class="ui.input.closeButton"
aria-label="Close"
@click="onClear"
@@ -280,6 +280,8 @@ export default defineComponent({
)
})
const emptyState = computed(() => ({ ...ui.value.default.emptyState, ...props.emptyState }))
// Methods
function activateFirstOption () {
@@ -327,6 +329,8 @@ export default defineComponent({
query,
iconName,
iconClass,
// eslint-disable-next-line vue/no-dupe-keys
emptyState,
onSelect,
onClear
}