|
|
@ -3,6 +3,7 @@ import type { TableType } from 'nocodb-sdk' |
|
|
|
import type { Input } from 'ant-design-vue' |
|
|
|
import type { Input } from 'ant-design-vue' |
|
|
|
import Sortable from 'sortablejs' |
|
|
|
import Sortable from 'sortablejs' |
|
|
|
import GithubButton from 'vue-github-button' |
|
|
|
import GithubButton from 'vue-github-button' |
|
|
|
|
|
|
|
import { Icon } from '@iconify/vue' |
|
|
|
import type { VNodeRef } from '#imports' |
|
|
|
import type { VNodeRef } from '#imports' |
|
|
|
import { |
|
|
|
import { |
|
|
|
ClientType, |
|
|
|
ClientType, |
|
|
@ -307,14 +308,12 @@ const setIcon = (icon: string, table: TableType) => { |
|
|
|
} |
|
|
|
} |
|
|
|
tables.value.splice(tables.value.indexOf(table), 1, { ...table }) |
|
|
|
tables.value.splice(tables.value.indexOf(table), 1, { ...table }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
updateTab({ id: table.id }, { meta: table.meta }) |
|
|
|
updateTab({ id: table.id }, { meta: table.meta }) |
|
|
|
|
|
|
|
|
|
|
|
$api.dbTable.update(table.id as string, { |
|
|
|
$api.dbTable.update(table.id as string, { |
|
|
|
meta: table.meta, |
|
|
|
meta: table.meta, |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -577,11 +576,7 @@ const setIcon = (icon: string, table: TableType) => { |
|
|
|
|
|
|
|
|
|
|
|
<a-tooltip> |
|
|
|
<a-tooltip> |
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon"> |
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon"> |
|
|
|
<GeneralIconifyIcon |
|
|
|
<Icon :key="table.meta?.icon" class="text-xl" :icon="table.meta?.icon"></Icon> |
|
|
|
:key="table.meta?.icon" |
|
|
|
|
|
|
|
class="text-xl" |
|
|
|
|
|
|
|
:icon="table.meta?.icon" |
|
|
|
|
|
|
|
></GeneralIconifyIcon> |
|
|
|
|
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="icon(table)" |
|
|
|
:is="icon(table)" |
|
|
@ -594,7 +589,7 @@ const setIcon = (icon: string, table: TableType) => { |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<template #overlay> |
|
|
|
<template #overlay> |
|
|
|
<LazyGeneralEmojiIcons class="shadow bg-white p-2" @select-icon="setIcon($event, table)" /> |
|
|
|
<GeneralEmojiIcons class="shadow bg-white p-2" @select-icon="setIcon($event, table)" /> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</a-dropdown> |
|
|
|
</a-dropdown> |
|
|
|
|
|
|
|
|
|
|
|