|
|
@ -2,7 +2,7 @@ |
|
|
|
import { handleTZ } from 'nocodb-sdk' |
|
|
|
import { handleTZ } from 'nocodb-sdk' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import { CellValueInj, ColumnInj, computed, inject, renderValue, replaceUrlsWithLink, useBase } from '#imports' |
|
|
|
import { CellValueInj, ColumnInj, computed, inject, renderValue, replaceUrlsWithLink, useBase, useGlobal } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
// todo: column type doesn't have required property `error` - throws in typecheck |
|
|
|
// todo: column type doesn't have required property `error` - throws in typecheck |
|
|
|
const column = inject(ColumnInj) as Ref<ColumnType & { colOptions: { error: any } }> |
|
|
|
const column = inject(ColumnInj) as Ref<ColumnType & { colOptions: { error: any } }> |
|
|
@ -11,6 +11,8 @@ const cellValue = inject(CellValueInj) |
|
|
|
|
|
|
|
|
|
|
|
const { isPg } = useBase() |
|
|
|
const { isPg } = useBase() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { showNull } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const result = computed(() => |
|
|
|
const result = computed(() => |
|
|
|
isPg(column.value.source_id) ? renderValue(handleTZ(cellValue?.value)) : renderValue(cellValue?.value), |
|
|
|
isPg(column.value.source_id) ? renderValue(handleTZ(cellValue?.value)) : renderValue(cellValue?.value), |
|
|
|
) |
|
|
|
) |
|
|
@ -30,6 +32,8 @@ const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning, activ |
|
|
|
<span>ERR!</span> |
|
|
|
<span>ERR!</span> |
|
|
|
</a-tooltip> |
|
|
|
</a-tooltip> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span v-else-if="cellValue === null && showNull" class="nc-null uppercase">{{ $t('general.null') }}</span> |
|
|
|
|
|
|
|
|
|
|
|
<div v-else class="py-2" @dblclick="activateShowEditNonEditableFieldWarning"> |
|
|
|
<div v-else class="py-2" @dblclick="activateShowEditNonEditableFieldWarning"> |
|
|
|
<div v-if="urls" v-html="urls" /> |
|
|
|
<div v-if="urls" v-html="urls" /> |
|
|
|
|
|
|
|
|
|
|
|