|
|
@ -1,6 +1,7 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import { ColumnInj } from '~/context' |
|
|
|
import { ColumnInj } from '~/context' |
|
|
|
|
|
|
|
import FilePhoneIcon from '~icons/mdi/file-phone' |
|
|
|
import { useColumn } from '#imports' |
|
|
|
import { useColumn } from '#imports' |
|
|
|
import KeyIcon from '~icons/mdi/key-variant' |
|
|
|
import KeyIcon from '~icons/mdi/key-variant' |
|
|
|
import JSONIcon from '~icons/mdi/code-json' |
|
|
|
import JSONIcon from '~icons/mdi/code-json' |
|
|
@ -52,6 +53,8 @@ const icon = computed(() => { |
|
|
|
return AttachmentIcon |
|
|
|
return AttachmentIcon |
|
|
|
} else if (additionalColMeta.isInt || additionalColMeta.isFloat) { |
|
|
|
} else if (additionalColMeta.isInt || additionalColMeta.isFloat) { |
|
|
|
return NumericIcon |
|
|
|
return NumericIcon |
|
|
|
|
|
|
|
} else if (additionalColMeta.isPhoneNumber) { |
|
|
|
|
|
|
|
return FilePhoneIcon |
|
|
|
} |
|
|
|
} |
|
|
|
// else if(additionalColMeta.isForeignKey) { |
|
|
|
// else if(additionalColMeta.isForeignKey) { |
|
|
|
// return FKIcon |
|
|
|
// return FKIcon |
|
|
|