mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +01:00
fix(CommandPalette/SelectMenu): missing translations (#3057)
This commit is contained in:
@@ -145,7 +145,6 @@ import UInput from './Input.vue'
|
||||
|
||||
const props = withDefaults(defineProps<CommandPaletteProps<G, T>>(), {
|
||||
modelValue: '',
|
||||
placeholder: 'Type a command or search...',
|
||||
labelKey: 'label',
|
||||
autofocus: true
|
||||
})
|
||||
@@ -158,7 +157,7 @@ const { t } = useLocale()
|
||||
const appConfig = useAppConfig()
|
||||
|
||||
const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'disabled', 'multiple', 'modelValue', 'defaultValue', 'highlightOnHover'), emits)
|
||||
const inputProps = useForwardProps(reactivePick(props, 'loading', 'loadingIcon', 'placeholder'))
|
||||
const inputProps = useForwardProps(reactivePick(props, 'loading', 'loadingIcon'))
|
||||
|
||||
// eslint-disable-next-line vue/no-dupe-keys
|
||||
const ui = commandPalette()
|
||||
@@ -244,6 +243,7 @@ const groups = computed(() => {
|
||||
<ListboxRoot v-bind="rootProps" :class="ui.root({ class: [props.class, props.ui?.root] })">
|
||||
<ListboxFilter v-model="searchTerm" as-child>
|
||||
<UInput
|
||||
:placeholder="placeholder || t('commandPalette.placeholder')"
|
||||
variant="none"
|
||||
:autofocus="autofocus"
|
||||
size="lg"
|
||||
|
||||
Reference in New Issue
Block a user