diff --git a/src/views/demo/tree/EditTree.vue b/src/views/demo/tree/EditTree.vue
index 7c7fcfee..c2f2ad49 100644
--- a/src/views/demo/tree/EditTree.vue
+++ b/src/views/demo/tree/EditTree.vue
@@ -1,41 +1,65 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+ 插槽:{{ item.name }}
+
+
+
+
+ 插槽:{{ item.title }}
+
+
+
+
+
+
diff --git a/src/views/demo/tree/data.ts b/src/views/demo/tree/data.ts
index 8fb40bf8..cbbf3969 100644
--- a/src/views/demo/tree/data.ts
+++ b/src/views/demo/tree/data.ts
@@ -33,3 +33,89 @@ export const treeData: TreeItem[] = [
],
},
];
+
+export const treeData2: any[] = [
+ {
+ name: 'parent ',
+ id: '0-0',
+ slots: { title: 'title' },
+ children: [
+ { name: 'leaf', id: '0-0-0', slots: { title: 'title' } },
+ {
+ name: 'leaf',
+ id: '0-0-1',
+ slots: { title: 'title' },
+ children: [
+ {
+ name: 'leaf',
+ slots: { title: 'title' },
+ id: '0-0-0-0',
+ children: [{ name: 'leaf', id: '0-0-0-0-1', slots: { title: 'title' } }],
+ },
+ { name: 'leaf', slots: { title: 'title' }, id: '0-0-0-1' },
+ ],
+ },
+ ],
+ },
+ {
+ name: 'parent 2',
+ id: '1-1',
+ slots: { title: 'title' },
+ children: [
+ { name: 'leaf', slots: { title: 'title' }, id: '1-1-0' },
+ { name: 'leaf', slots: { title: 'title' }, id: '1-1-1' },
+ ],
+ },
+ {
+ name: 'parent 3',
+ id: '2-2',
+ slots: { title: 'title' },
+ children: [
+ { name: 'leaf', slots: { title: 'title' }, id: '2-2-0' },
+ { name: 'leaf', slots: { title: 'title' }, id: '2-2-1' },
+ ],
+ },
+];
+
+export const treeData3: any[] = [
+ {
+ name: 'parent ',
+ key: '0-0',
+ slots: { title: 'title' },
+ children: [
+ { name: 'leaf', key: '0-0-0', slots: { title: 'title' } },
+ {
+ name: 'leaf',
+ key: '0-0-1',
+ slots: { title: 'title' },
+ children: [
+ {
+ name: 'leaf',
+ slots: { title: 'title' },
+ key: '0-0-0-0',
+ children: [{ name: 'leaf', key: '0-0-0-0-1', slots: { title: 'title' } }],
+ },
+ { name: 'leaf', slots: { title: 'title' }, key: '0-0-0-1' },
+ ],
+ },
+ ],
+ },
+ {
+ name: 'parent 2',
+ key: '1-1',
+ slots: { title: 'title' },
+ children: [
+ { name: 'leaf', slots: { title: 'title' }, key: '1-1-0' },
+ { name: 'leaf', slots: { title: 'title' }, key: '1-1-1' },
+ ],
+ },
+ {
+ name: 'parent 3',
+ key: '2-2',
+ slots: { title: 'title' },
+ children: [
+ { name: 'leaf', slots: { title: 'title' }, key: '2-2-0' },
+ { name: 'leaf', slots: { title: 'title' }, key: '2-2-1' },
+ ],
+ },
+];