diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index e7827e1239..5249014afe 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -288,7 +288,7 @@ const expandForm = (row: Row) => { -
+
#
{ - - - -
-
{{ rowIndex + 1 }}
-
- - -
- + + + +
+
{{ rowIndex + 1 }}
+
+ + +
+ +
-
- - -
- - - -
- - + :data-key="rowIndex + columnObj.id" + :data-col="columnObj.id" + :data-title="columnObj.title" + @click="selectCell(rowIndex, colIndex)" + @dblclick="makeEditable(row, columnObj)" + @contextmenu="contextMenuTarget = { row: rowIndex, col: colIndex }" + > +
+ + + +
+ + @@ -450,13 +443,11 @@ const expandForm = (row: Row) => { min-height: 41px !important; height: 41px !important; position: relative; - //padding: 0 5px; + } - & > div { - overflow: hidden; - @apply flex align-center h-auto; - padding: 0 5px; - } + td > div { + overflow: hidden; + @apply flex align-center h-auto px-1; } table, diff --git a/packages/nc-gui-v2/components/smartsheet/Row.vue b/packages/nc-gui-v2/components/smartsheet/Row.vue index 4b8e072800..043894959a 100644 --- a/packages/nc-gui-v2/components/smartsheet/Row.vue +++ b/packages/nc-gui-v2/components/smartsheet/Row.vue @@ -1,79 +1,23 @@ diff --git a/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts b/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts index 67bb0f78b3..6b5ced2dc2 100644 --- a/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts +++ b/packages/nc-gui-v2/composables/useSmartsheetRowStore.ts @@ -5,7 +5,7 @@ import type { Row } from '~/composables/useViewData' const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState((meta: Ref, row: Ref) => { // state - const localState = reactive({}) + const localState = ref({}) // getters const isNew = computed(() => row.value?.rowMeta?.new)