From efd732edb16048b506bb1b449e66211a90b9f840 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 6 Aug 2022 02:26:32 +0530 Subject: [PATCH] feat(gui-v2): LTAR form style correction Signed-off-by: Pranav C --- .../components/smartsheet/expanded-form/index.vue | 2 +- .../nc-gui-v2/components/virtual-cell/BelongsTo.vue | 10 ++++++++-- packages/nc-gui-v2/components/virtual-cell/HasMany.vue | 7 ++++--- .../nc-gui-v2/components/virtual-cell/ManyToMany.vue | 6 +++++- .../virtual-cell/components/ListChildItems.vue | 5 ++++- 5 files changed, 22 insertions(+), 8 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue b/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue index 9eb4dab0eb..29a5e97138 100644 --- a/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui-v2/components/smartsheet/expanded-form/index.vue @@ -51,7 +51,7 @@ const drawerToggleIcon = computed(() => (commentsDrawer.value ? MdiDoorOpen : Md
- + >, row, reloadTrigger.trigger, @@ -29,6 +31,7 @@ await loadRelatedTableMeta() diff --git a/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue b/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue index aa05726fc0..ea2c5f1596 100644 --- a/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue +++ b/packages/nc-gui-v2/components/virtual-cell/ManyToMany.vue @@ -5,7 +5,7 @@ import ItemChip from './components/ItemChip.vue' import ListChildItems from './components/ListChildItems.vue' import ListItems from './components/ListItems.vue' import { computed, inject, ref, useProvideLTARStore } from '#imports' -import { CellValueInj, ColumnInj, ReloadViewDataHookInj, RowInj } from '~/context' +import { CellValueInj, ColumnInj, ReloadViewDataHookInj,IsFormInj, RowInj } from '~/context' const column = inject(ColumnInj)! @@ -15,6 +15,8 @@ const cellValue = inject(CellValueInj)! const reloadTrigger = inject(ReloadViewDataHookInj)! +const isForm = inject(IsFormInj) + const listItemsDlg = ref(false) const childListDlg = ref(false) @@ -42,6 +44,7 @@ const cells = computed(() =>