From e4bcf8c899a5dc3e76dc9cb9bc0aed253af2f742 Mon Sep 17 00:00:00 2001 From: invalid w Date: Sat, 21 Oct 2023 11:49:17 +0800 Subject: [PATCH] =?UTF-8?q?chore(demo):=20basicTree=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0icon=20=E5=92=8C=20switcherIcon=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/tree/data.ts | 1 + src/views/demo/tree/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/demo/tree/data.ts b/src/views/demo/tree/data.ts index 485efb8f7..20fd5c53a 100644 --- a/src/views/demo/tree/data.ts +++ b/src/views/demo/tree/data.ts @@ -4,6 +4,7 @@ export const treeData: TreeItem[] = [ { title: 'parent ', key: '0-0', + icon: 'ion:settings-outline', children: [ { title: 'leaf', key: '0-0-0' }, { diff --git a/src/views/demo/tree/index.vue b/src/views/demo/tree/index.vue index 545c374f3..3af54ceac 100644 --- a/src/views/demo/tree/index.vue +++ b/src/views/demo/tree/index.vue @@ -3,7 +3,9 @@ - + + + @@ -62,6 +64,7 @@ import { cloneDeep, uniq } from 'lodash-es'; import { isArray } from '/@/utils/is'; import { type Nullable } from '@vben/types'; + import { SmileTwoTone, CarryOutOutlined } from '@ant-design/icons-vue'; const asyncTreeRef = ref>(null); const asyncExpandTreeRef = ref>(null);