diff --git a/packages/nc-gui/components/cmd-k/index.vue b/packages/nc-gui/components/cmd-k/index.vue index 032c5069aa..abdfda0aab 100644 --- a/packages/nc-gui/components/cmd-k/index.vue +++ b/packages/nc-gui/components/cmd-k/index.vue @@ -2,6 +2,7 @@ import { useMagicKeys, whenever } from '@vueuse/core' import { commandScore } from './command-score' import type { CommandPaletteType } from '~/lib/types' +import LinkedItems from '../virtual-cell/components/LinkedItems.vue' interface CmdAction { id: string @@ -10,7 +11,8 @@ interface CmdAction { parent?: string handler?: Function scopePayload?: any - icon?: VNode | string + icon?: VNode | string | Record + iconType?: string keywords?: string[] section?: string is_default?: number | null @@ -85,6 +87,7 @@ const nestedScope = computed(() => { id: parent, label: parentEl?.title, icon: parentEl?.icon, + iconType: parentEl?.iconType, iconColor: parent.startsWith('ws-') ? parentEl?.iconColor : null, }) parent = parentEl?.parent || 'root' @@ -414,13 +417,15 @@ defineExpose({