diff --git a/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue b/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue index 7872a7cb16..6e42ada4bd 100644 --- a/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue +++ b/packages/nc-gui-v2/components/virtual-cell/BelongsTo.vue @@ -13,7 +13,7 @@ const active = false const localState = null const listItemsDlg = ref(false) -const { relatedTableMeta, loadRelatedTableMeta, relatedTablePrimaryValueProp } = useProvideLTARStore( +const { relatedTableMeta, loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( column as Required, row, ) @@ -24,11 +24,11 @@ await loadRelatedTableMeta()
-
diff --git a/packages/nc-gui-v2/components/virtual-cell/HasMany.vue b/packages/nc-gui-v2/components/virtual-cell/HasMany.vue index 19c291bea1..d90fe2d953 100644 --- a/packages/nc-gui-v2/components/virtual-cell/HasMany.vue +++ b/packages/nc-gui-v2/components/virtual-cell/HasMany.vue @@ -6,10 +6,16 @@ import { useHasMany } from '#imports' const column = inject(ColumnInj) const value = inject(ValueInj) -const active = false +const row = inject(RowInj) -const { childMeta, loadChildMeta, primaryValueProp } = useHasMany(column as ColumnType) -await loadChildMeta() +const listItemsDlg = ref(false) +const childListDlg = ref(false) + +const { relatedTableMeta, loadRelatedTableMeta, relatedTablePrimaryValueProp, unlink } = useProvideLTARStore( + column as Required, + row, +) +await loadRelatedTableMeta() /* // import ApiFactory from '@/components/project/spreadsheet/apis/apiFactory' import { RelationTypes, UITypes, isSystemColumn } from 'nocodb-sdk' @@ -373,11 +379,11 @@ export default { -
- - more... -
- - - - - - - - - - - - - - - - - - +
+ +
+ +
- - diff --git a/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue b/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue index 6d732515f9..bea4454b29 100644 --- a/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue +++ b/packages/nc-gui-v2/components/virtual-cell/components/ItemChip.vue @@ -1,4 +1,5 @@ @@ -16,7 +18,7 @@ const active = inject(ActiveCellInj, false)
{{ value }}
- +
diff --git a/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue b/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue index 8bd1c4175b..5f93ca99c2 100644 --- a/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue +++ b/packages/nc-gui-v2/components/virtual-cell/components/ListChildItems.vue @@ -1,254 +1,39 @@ - - - diff --git a/packages/nc-gui-v2/components/virtual-cell/components/ListItems.vue b/packages/nc-gui-v2/components/virtual-cell/components/ListItems.vue index 5cc11ac1fe..3e23ab8a27 100644 --- a/packages/nc-gui-v2/components/virtual-cell/components/ListItems.vue +++ b/packages/nc-gui-v2/components/virtual-cell/components/ListItems.vue @@ -1,6 +1,7 @@