From 11dc8f1e2121e2df78d0e6246f331c81698313d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=BD=E5=B0=8F=E6=A2=85?= <425605679@qq.com> Date: Tue, 19 Oct 2021 18:22:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(tree):=20=E6=A0=91=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E9=87=8D=E6=9E=84=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/zh-CN/components/tree.md | 19 ++- src/module/tree/index.ts | 4 +- src/module/tree/new-tree/TreeNode.vue | 62 ++------ src/module/tree/new-tree/index.vue | 25 +-- src/module/tree/new-tree/tree.ts | 202 ++++++++++++++---------- src/module/tree/new-tree/tree.type.ts | 13 +- src/module/tree/new-tree/useTree.ts | 46 +++--- src/module/tree/new-tree/useTreeData.ts | 83 ++++++++++ 8 files changed, 276 insertions(+), 178 deletions(-) create mode 100644 src/module/tree/new-tree/useTreeData.ts diff --git a/docs/docs/zh-CN/components/tree.md b/docs/docs/zh-CN/components/tree.md index 3d48176a..bac6b099 100644 --- a/docs/docs/zh-CN/components/tree.md +++ b/docs/docs/zh-CN/components/tree.md @@ -8,6 +8,7 @@ :showCheckbox="showCheckbox" v-model:checkedKeys="checkedKeys" @node-click="handleClick" + :disabled="disabled" >
@@ -32,6 +33,7 @@
     {{ clickNode }}
   
+