|
|
@ -1,5 +1,5 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { PlanLimitTypes, RelationTypes, UITypes, isLinksOrLTAR, isSystemColumn } from 'nocodb-sdk' |
|
|
|
import { PlanLimitTypes, RelationTypes, UITypes, getEquivalentUIType, isLinksOrLTAR, isSystemColumn } from 'nocodb-sdk' |
|
|
|
import type { ColumnType, LinkToAnotherRecordType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType, LinkToAnotherRecordType } from 'nocodb-sdk' |
|
|
|
import { |
|
|
|
import { |
|
|
|
ActiveViewInj, |
|
|
|
ActiveViewInj, |
|
|
@ -75,8 +75,20 @@ const availableColumns = computed(() => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
const getColumnUidtByID = (key?: string) => { |
|
|
|
const getColumnUidtByID = (key?: string) => { |
|
|
|
if (!key) return '' |
|
|
|
if (!key || !columnByID.value[key]) return '' |
|
|
|
return columnByID.value[key]?.uidt || '' |
|
|
|
|
|
|
|
|
|
|
|
const column = columnByID.value[key] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let uidt = column.uidt |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (column.uidt === UITypes.Formula) { |
|
|
|
|
|
|
|
uidt = |
|
|
|
|
|
|
|
getEquivalentUIType({ |
|
|
|
|
|
|
|
formulaColumn: column, |
|
|
|
|
|
|
|
}) || uidt |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return uidt || '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const open = ref(false) |
|
|
|
const open = ref(false) |
|
|
|