|
|
@ -3,7 +3,7 @@ import { computed } from '@vue/reactivity' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import type { ColumnType } from 'nocodb-sdk' |
|
|
|
import { ref } from 'vue' |
|
|
|
import { ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import type { Ref } from 'vue' |
|
|
|
import { ActiveCellInj, CellValueInj, ColumnInj, EditModeInj, MetaInj, inject, useSelectedCellKeyupListener } from '#imports' |
|
|
|
import { ActiveCellInj,IsUnderLookupInj, CellValueInj, ColumnInj, EditModeInj, MetaInj, inject, useSelectedCellKeyupListener } from '#imports' |
|
|
|
|
|
|
|
|
|
|
|
const value = inject(CellValueInj, ref(0)) |
|
|
|
const value = inject(CellValueInj, ref(0)) |
|
|
|
|
|
|
|
|
|
|
@ -29,6 +29,9 @@ const active = inject(ActiveCellInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const editable = inject(EditModeInj, ref(false)) |
|
|
|
const editable = inject(EditModeInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isUnderLookup = inject(IsUnderLookupInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
const listItemsDlg = ref(false) |
|
|
|
const listItemsDlg = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const childListDlg = ref(false) |
|
|
|
const childListDlg = ref(false) |
|
|
@ -97,8 +100,8 @@ const localCellValue = computed<any[]>(() => { |
|
|
|
<div class="block flex-shrink truncate"> |
|
|
|
<div class="block flex-shrink truncate"> |
|
|
|
<component |
|
|
|
<component |
|
|
|
:title="textVal" |
|
|
|
:title="textVal" |
|
|
|
:is="isLocked ? 'span' : 'a'" |
|
|
|
:is="isLocked || IsUnderLookupInj ? 'span' : 'a'" |
|
|
|
class="text-center pl-3 nc-datatype-link " |
|
|
|
class="text-center pl-3 nc-datatype-link" |
|
|
|
:class="{ '!text-gray-300': !value }" |
|
|
|
:class="{ '!text-gray-300': !value }" |
|
|
|
@click.stop.prevent="openChildList" |
|
|
|
@click.stop.prevent="openChildList" |
|
|
|
> |
|
|
|
> |
|
|
|