From 57cd7120644ff2d0bf57d230ef6e34b923fdebbc Mon Sep 17 00:00:00 2001 From: samunohito <46447427+samunohito@users.noreply.github.com> Date: Sat, 3 Feb 2024 20:10:56 +0900 Subject: [PATCH] fix number cell focus --- .../src/components/grid/MkDataRow.vue | 3 ++- .../frontend/src/components/grid/MkGrid.vue | 21 +++++++++++++++---- .../src/components/grid/MkNumberCell.vue | 2 +- .../src/components/grid/grid-utils.ts | 17 +++++++++++++++ 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/grid/MkDataRow.vue b/packages/frontend/src/components/grid/MkDataRow.vue index 2352e539b4..295427a67a 100644 --- a/packages/frontend/src/components/grid/MkDataRow.vue +++ b/packages/frontend/src/components/grid/MkDataRow.vue @@ -9,6 +9,7 @@ v-for="cell in cells" :key="cell.address.col" :cell="cell" + :gridSetting="gridSetting" :bus="bus" @operation:beginEdit="(sender) => emit('operation:beginEdit', sender)" @operation:endEdit="(sender) => emit('operation:endEdit', sender)" @@ -39,7 +40,7 @@ const props = defineProps<{ bus: GridEventEmitter, }>(); -const { cells } = toRefs(props); +const { cells, gridSetting } = toRefs(props); diff --git a/packages/frontend/src/components/grid/MkGrid.vue b/packages/frontend/src/components/grid/MkGrid.vue index 9e210cf582..af522ed281 100644 --- a/packages/frontend/src/components/grid/MkGrid.vue +++ b/packages/frontend/src/components/grid/MkGrid.vue @@ -1,7 +1,6 @@