diff --git a/packages/nc-gui/components.d.ts b/packages/nc-gui/components.d.ts index bb95e0722e..79b48c1824 100644 --- a/packages/nc-gui/components.d.ts +++ b/packages/nc-gui/components.d.ts @@ -50,6 +50,7 @@ declare module '@vue/runtime-core' { AntDesignMenuFoldOutlined: typeof import('~icons/ant-design/menu-fold-outlined')['default'] AntDesignMenuUnfoldOutlined: typeof import('~icons/ant-design/menu-unfold-outlined')['default'] APagination: typeof import('ant-design-vue/es')['Pagination'] + APopover: typeof import('ant-design-vue/es')['Popover'] ARadio: typeof import('ant-design-vue/es')['Radio'] ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup'] ARate: typeof import('ant-design-vue/es')['Rate'] diff --git a/packages/nc-gui/components/dashboard/TreeView.vue b/packages/nc-gui/components/dashboard/TreeView.vue index f21928d9a9..183053612b 100644 --- a/packages/nc-gui/components/dashboard/TreeView.vue +++ b/packages/nc-gui/components/dashboard/TreeView.vue @@ -299,6 +299,19 @@ watch( }, { immediate: true }, ) + + +const setIcon = (icon: string, table: TableType) => { + table.meta = { + // ...table.meta || {}, + icon, + } + $api.dbTable.update(table.id as string, { + meta: { + icon, + }, + }) +}