mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 15:31:46 +01:00
fix(CommandPalette): override of closeButton and emptyState props
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user