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