From a74fe3ab223c87c07f3940375ba2562c0578f11b Mon Sep 17 00:00:00 2001 From: Shevchik Igor Date: Sun, 7 Jun 2026 04:37:12 +0000 Subject: [PATCH] fix(ContentSearch/DashboardSearch): proxy missing CommandPalette props Forward the additional CommandPalette props (trailingIcon, selectedIcon, childrenIcon, back, backIcon, disabled, highlightOnHover, labelKey, descriptionKey, preserveGroupOrder, virtualize) through both the props interface (Pick) and reactivePick, in DashboardSearch and ContentSearch. All forwarded props verified to exist on b24ui's CommandPalette. b24ui does not expose loadingIcon on these wrappers (pre-existing divergence) so it is left untouched. Upstream: nuxt/ui@631f5dc543fecaa36d5090a10a3db3223e9671b5 --- src/runtime/components/DashboardSearch.vue | 4 ++-- src/runtime/components/content/ContentSearch.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime/components/DashboardSearch.vue b/src/runtime/components/DashboardSearch.vue index 724fdc271..91609a4dc 100644 --- a/src/runtime/components/DashboardSearch.vue +++ b/src/runtime/components/DashboardSearch.vue @@ -12,7 +12,7 @@ type DashboardSearch = ComponentConfig extends Pick, Pick, T>, 'icon' | 'placeholder' | 'autofocus' | 'loading' | 'closeIcon' | 'groups'> { +export interface DashboardSearchProps extends Pick, Pick, T>, 'icon' | 'trailingIcon' | 'selectedIcon' | 'childrenIcon' | 'placeholder' | 'autofocus' | 'loading' | 'closeIcon' | 'back' | 'backIcon' | 'disabled' | 'highlightOnHover' | 'labelKey' | 'descriptionKey' | 'preserveGroupOrder' | 'virtualize' | 'groups'> { /** * @defaultValue 'md' */ @@ -103,7 +103,7 @@ const colorMode = useColorMode() const appConfig = useAppConfig() as DashboardSearch['AppConfig'] /** @memo not use loadingIcon */ -const commandPaletteProps = useForwardProps(reactivePick(props, 'size', 'icon', 'placeholder', 'autofocus', 'loading', 'close', 'closeIcon', 'searchDelay')) +const commandPaletteProps = useForwardProps(reactivePick(props, 'size', 'icon', 'trailingIcon', 'selectedIcon', 'childrenIcon', 'placeholder', 'autofocus', 'loading', 'close', 'closeIcon', 'back', 'backIcon', 'disabled', 'highlightOnHover', 'labelKey', 'descriptionKey', 'preserveGroupOrder', 'virtualize', 'searchDelay')) const modalProps = useForwardProps(reactivePick(props, 'overlay', 'transition', 'content', 'dismissible', 'fullscreen', 'modal', 'portal')) const getProxySlots = () => omit(slots, ['content']) diff --git a/src/runtime/components/content/ContentSearch.vue b/src/runtime/components/content/ContentSearch.vue index 1463f964e..912e067ff 100644 --- a/src/runtime/components/content/ContentSearch.vue +++ b/src/runtime/components/content/ContentSearch.vue @@ -39,7 +39,7 @@ export interface ContentSearchItem extends Omit, CommandPal /** * @memo not use loadingIcon */ -export interface ContentSearchProps extends Pick, Pick, ContentSearchItem>, 'icon' | 'placeholder' | 'autofocus' | 'loading' | 'closeIcon' | 'groups'> { +export interface ContentSearchProps extends Pick, Pick, ContentSearchItem>, 'icon' | 'trailingIcon' | 'selectedIcon' | 'childrenIcon' | 'placeholder' | 'autofocus' | 'loading' | 'closeIcon' | 'back' | 'backIcon' | 'disabled' | 'highlightOnHover' | 'labelKey' | 'descriptionKey' | 'preserveGroupOrder' | 'virtualize' | 'groups'> { /** * @defaultValue 'md' */ @@ -132,7 +132,7 @@ const colorMode = useColorMode() const appConfig = useAppConfig() as ContentSearch['AppConfig'] /** @memo not use loadingIcon */ -const commandPaletteProps = useForwardProps(reactivePick(props, 'size', 'icon', 'placeholder', 'autofocus', 'loading', 'close', 'closeIcon', 'searchDelay')) +const commandPaletteProps = useForwardProps(reactivePick(props, 'size', 'icon', 'trailingIcon', 'selectedIcon', 'childrenIcon', 'placeholder', 'autofocus', 'loading', 'close', 'closeIcon', 'back', 'backIcon', 'disabled', 'highlightOnHover', 'labelKey', 'descriptionKey', 'preserveGroupOrder', 'virtualize', 'searchDelay')) const modalProps = useForwardProps(reactivePick(props, 'overlay', 'transition', 'content', 'dismissible', 'fullscreen', 'modal', 'portal')) const getProxySlots = () => omit(slots, ['content'])