From 7f4ef21f37973202d8ded74926c3a23d37d2a34d Mon Sep 17 00:00:00 2001
From: hLinx <327159425@qq.com>
Date: Thu, 9 Jan 2025 10:03:09 +0800
Subject: [PATCH] =?UTF-8?q?feat(frontend):=20=E5=B7=A5=E5=85=B7=E7=AE=B1?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E8=B5=84=E6=BA=90=E6=B1=A0=E5=8D=8F=E8=AE=AE?=
=?UTF-8?q?=E5=8F=98=E6=9B=B4=5Ftable=20#8076=20#=20Reviewed,=20transactio?=
=?UTF-8?q?n=20id:=2028902?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/editable-table/Column.vue | 42 +++--
.../src/components/editable-table/Index.vue | 3 +-
.../component/render-header/Index.vue | 1 +
.../component/render-header/render-th.ts | 10 ++
.../components/editable-table/edit/Block.vue | 16 +-
.../editable-table/edit/DatePicker.vue | 7 +-
.../editable-table/edit/TagInput.vue | 14 +-
.../editable-table/edit/Textarea.vue | 6 +
.../editable-table/edit/TimePicker.vue | 7 +-
.../editable-table/hooks/use-resize.ts | 156 ++++++++++++++----
.../src/components/editable-table/types.ts | 2 +-
dbm-ui/frontend/src/demo/Index.vue | 44 +++--
.../column/operation-column/Index.vue | 4 +-
13 files changed, 226 insertions(+), 86 deletions(-)
diff --git a/dbm-ui/frontend/src/components/editable-table/Column.vue b/dbm-ui/frontend/src/components/editable-table/Column.vue
index 4dba48360e..186caa101c 100644
--- a/dbm-ui/frontend/src/components/editable-table/Column.vue
+++ b/dbm-ui/frontend/src/components/editable-table/Column.vue
@@ -19,7 +19,10 @@
content: disabledTips,
disabled: !disabledTips,
}"
- class="bk-editable-table-field-cell">
+ class="bk-editable-table-field-cell"
+ :style="{
+ width: `${tableContext?.columnSizeConfig.value[columnKey]?.renderWidth}px`,
+ }">