From db93b9a68e0f200f61ec0ed27db35e63a6337cec Mon Sep 17 00:00:00 2001 From: ZTao-z <1124693098@qq.com> Date: Mon, 29 Aug 2022 18:03:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(table):=20=E5=A4=9A=E7=BA=A7=E8=A1=A8?= =?UTF-8?q?=E5=A4=B4=E6=94=AF=E6=8C=81=E8=B0=83=E6=95=B4=E5=88=97=E5=AE=BD?= =?UTF-8?q?=20(#1395)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(table): multiple header resize * fix(table): update demo * fix(table): update test case * fix(table): extract public functions * fix(table): update import * fix(table): update _common * fix(table): optimize code * fix(table): remove useless code --- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- src/table/_example/multi-header.vue | 2 + src/table/base-table.tsx | 14 +- src/table/hooks/useColumnResize.ts | 184 ++++++------------ src/table/thead.tsx | 14 +- test/ssr/__snapshots__/ssr.test.js.snap | 2 +- 6 files changed, 74 insertions(+), 144 deletions(-) diff --git a/src/table/__tests__/__snapshots__/demo.test.js.snap b/src/table/__tests__/__snapshots__/demo.test.js.snap index 9cce519d1..0062ca3c9 100644 --- a/src/table/__tests__/__snapshots__/demo.test.js.snap +++ b/src/table/__tests__/__snapshots__/demo.test.js.snap @@ -17777,7 +17777,7 @@ exports[`Table Table multiHeaderVue demo works fine 1`] = `