mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +01:00
chore(CommandPalette): improve types import
This commit is contained in:
@@ -73,7 +73,7 @@ import type { UseFuseOptions } from '@vueuse/integrations/useFuse'
|
|||||||
import type { Group, Command } from '../../types/command-palette'
|
import type { Group, Command } from '../../types/command-palette'
|
||||||
import UIcon from '../elements/Icon.vue'
|
import UIcon from '../elements/Icon.vue'
|
||||||
import UButton from '../elements/Button.vue'
|
import UButton from '../elements/Button.vue'
|
||||||
import type { Button as ButtonType } from '../../types/button'
|
import type { Button } from '../../types/button'
|
||||||
import { classNames } from '../../utils'
|
import { classNames } from '../../utils'
|
||||||
import CommandPaletteGroup from './CommandPaletteGroup.vue'
|
import CommandPaletteGroup from './CommandPaletteGroup.vue'
|
||||||
import { useAppConfig } from '#imports'
|
import { useAppConfig } from '#imports'
|
||||||
@@ -134,7 +134,7 @@ export default defineComponent({
|
|||||||
default: () => appConfig.ui.commandPalette.default.selectedIcon
|
default: () => appConfig.ui.commandPalette.default.selectedIcon
|
||||||
},
|
},
|
||||||
close: {
|
close: {
|
||||||
type: Object as PropType<Partial<ButtonType>>,
|
type: Object as PropType<Partial<Button>>,
|
||||||
default: () => appConfig.ui.commandPalette.default.close
|
default: () => appConfig.ui.commandPalette.default.close
|
||||||
},
|
},
|
||||||
empty: {
|
empty: {
|
||||||
|
|||||||
Reference in New Issue
Block a user