From 1c6bba4ce183e58c5a223775679fd5449d2a8822 Mon Sep 17 00:00:00 2001 From: sheepluo Date: Mon, 16 May 2022 23:03:21 +0800 Subject: [PATCH] =?UTF-8?q?[Table]=20=E6=A0=91=E5=BD=A2=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E6=96=B0=E7=89=B9=E6=80=A7=EF=BC=9A=E5=B1=95=E5=BC=80/?= =?UTF-8?q?=E6=94=B6=E8=B5=B7=E5=85=A8=E9=83=A8=EF=BC=8C=E6=8B=96=E6=8B=BD?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E7=AD=89=20(#879)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(notification): 插件调用与函数式调用 * fix(table): merged cells border style * feat(table): support expand all and fold all * feat(table): update API * feat(table): support defaultExpandAll * refactor(table): expandAll and foldAll * fix(table): 展开或收起全部 * feat(table): tree drag sort * feat(table): drag sort * feat(table): update documents * feat(table): drag sort + expand all + fold all * fix(table): tree, rowIndex * refactor(table): 统一树形结构赋值方式 Co-authored-by: sheepluo --- examples/dialog/demos/attach.vue | 2 +- examples/table/demos/tree.vue | 122 ++++-- examples/table/table.md | 22 +- src/table/base-table-props.ts | 2 +- src/table/enhanced-table-props.ts | 8 +- src/table/enhanced-table.tsx | 20 +- src/table/hooks/tree-store.ts | 396 ++++++++++++++---- src/table/hooks/useDragSort.ts | 4 +- src/table/hooks/useTreeData.tsx | 75 +++- src/table/type.ts | 62 ++- test/ssr/__snapshots__/ssr.test.js.snap | 83 ++-- .../table/__snapshots__/demo.test.js.snap | 327 ++++++++++----- 12 files changed, 851 insertions(+), 272 deletions(-) diff --git a/examples/dialog/demos/attach.vue b/examples/dialog/demos/attach.vue index e76cb754d..3fa1ab677 100644 --- a/examples/dialog/demos/attach.vue +++ b/examples/dialog/demos/attach.vue @@ -78,7 +78,7 @@ export default Vue.extend({ }, }); -