|
|
@ -1,5 +1,6 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { nextTick } from '@vue/runtime-core' |
|
|
|
import { nextTick } from '@vue/runtime-core' |
|
|
|
|
|
|
|
import { Icon as IconifyIcon } from '@iconify/vue' |
|
|
|
import type { TableType } from 'nocodb-sdk' |
|
|
|
import type { TableType } from 'nocodb-sdk' |
|
|
|
import type { Input } from 'ant-design-vue' |
|
|
|
import type { Input } from 'ant-design-vue' |
|
|
|
import { Dropdown, Tooltip, message } from 'ant-design-vue' |
|
|
|
import { Dropdown, Tooltip, message } from 'ant-design-vue' |
|
|
@ -734,12 +735,12 @@ const duplicateTable = async (table: TableType) => { |
|
|
|
<div class="flex items-center" @click.stop> |
|
|
|
<div class="flex items-center" @click.stop> |
|
|
|
<component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'"> |
|
|
|
<component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'"> |
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon flex items-center"> |
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon flex items-center"> |
|
|
|
<Icon |
|
|
|
<IconifyIcon |
|
|
|
:key="table.meta?.icon" |
|
|
|
:key="table.meta?.icon" |
|
|
|
:data-testid="`nc-icon-${table.meta?.icon}`" |
|
|
|
:data-testid="`nc-icon-${table.meta?.icon}`" |
|
|
|
class="text-xl" |
|
|
|
class="text-xl" |
|
|
|
:icon="table.meta?.icon" |
|
|
|
:icon="table.meta?.icon" |
|
|
|
></Icon> |
|
|
|
></IconifyIcon> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="icon(table)" |
|
|
|
:is="icon(table)" |
|
|
@ -1058,12 +1059,12 @@ const duplicateTable = async (table: TableType) => { |
|
|
|
<div class="flex items-center" @click.stop> |
|
|
|
<div class="flex items-center" @click.stop> |
|
|
|
<component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'"> |
|
|
|
<component :is="isUIAllowed('tableIconCustomisation') ? Tooltip : 'div'"> |
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon flex items-center"> |
|
|
|
<span v-if="table.meta?.icon" :key="table.meta?.icon" class="nc-table-icon flex items-center"> |
|
|
|
<Icon |
|
|
|
<IconifyIcon |
|
|
|
:key="table.meta?.icon" |
|
|
|
:key="table.meta?.icon" |
|
|
|
:data-testid="`nc-icon-${table.meta?.icon}`" |
|
|
|
:data-testid="`nc-icon-${table.meta?.icon}`" |
|
|
|
class="text-xl" |
|
|
|
class="text-xl" |
|
|
|
:icon="table.meta?.icon" |
|
|
|
:icon="table.meta?.icon" |
|
|
|
></Icon> |
|
|
|
></IconifyIcon> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:is="icon(table)" |
|
|
|
:is="icon(table)" |
|
|
|