From 65ed9095e8af38b515d1d8f1047d067b642d7a47 Mon Sep 17 00:00:00 2001 From: sheepluo Date: Wed, 22 Nov 2023 10:28:20 +0800 Subject: [PATCH] [Table] fix column resize problem; column controller of multiple header improvement (#2916) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: demo inprovement * fix(table): multi header column config * fix: 修复列宽调整问题 * fix(table): column controller of multiple header does not work * test: update snapshots * test: update snapshots --- src/table/_example/affix.vue | 79 ++-- src/table/_example/multi-header.vue | 2 +- src/table/hooks/useAffix.ts | 1 + src/table/hooks/useColumnController.tsx | 8 +- src/table/hooks/useFixed.ts | 9 +- src/table/primary-table.tsx | 9 +- test/snap/__snapshots__/csr.test.js.snap | 503 ++++++++++++----------- test/snap/__snapshots__/ssr.test.js.snap | 4 +- 8 files changed, 336 insertions(+), 279 deletions(-) diff --git a/src/table/_example/affix.vue b/src/table/_example/affix.vue index 7ab2c4abe..af91d68af 100644 --- a/src/table/_example/affix.vue +++ b/src/table/_example/affix.vue @@ -1,14 +1,14 @@