|
|
@ -3,6 +3,7 @@ import type { TableType, ViewType } from 'nocodb-sdk' |
|
|
|
import { UITypes, isSystemColumn, isVirtualCol } from 'nocodb-sdk' |
|
|
|
import { UITypes, isSystemColumn, isVirtualCol } from 'nocodb-sdk' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import { |
|
|
|
import { |
|
|
|
|
|
|
|
CellClickHookInj, |
|
|
|
FieldsInj, |
|
|
|
FieldsInj, |
|
|
|
IsFormInj, |
|
|
|
IsFormInj, |
|
|
|
IsKanbanInj, |
|
|
|
IsKanbanInj, |
|
|
@ -49,6 +50,9 @@ const meta = toRef(props, 'meta') |
|
|
|
|
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
const router = useRouter() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// override cell click hook to avoid unexpected behavior at form fields |
|
|
|
|
|
|
|
provide(CellClickHookInj, null) |
|
|
|
|
|
|
|
|
|
|
|
const fields = computedInject(FieldsInj, (_fields) => { |
|
|
|
const fields = computedInject(FieldsInj, (_fields) => { |
|
|
|
if (props.useMetaFields) { |
|
|
|
if (props.useMetaFields) { |
|
|
|
return (meta.value.columns ?? []).filter((col) => !isSystemColumn(col)) |
|
|
|
return (meta.value.columns ?? []).filter((col) => !isSystemColumn(col)) |
|
|
|