From a8a973b12ca88f918dd26e790f71c443ee155c01 Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 8 Jun 2023 10:58:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96tree=20getIcon?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Tree/src/BasicTree.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Tree/src/BasicTree.vue b/src/components/Tree/src/BasicTree.vue index 8a750650..4c7117ea 100644 --- a/src/components/Tree/src/BasicTree.vue +++ b/src/components/Tree/src/BasicTree.vue @@ -110,7 +110,7 @@ export default defineComponent({ getSelectedNode } = useTree(treeDataRef, getFieldNames) - function getIcon(params: Recordable, icon?: string) { + function getIcon(params: TreeItem, icon?: string) { if (!icon) { if (props.renderIcon && isFunction(props.renderIcon)) { return props.renderIcon(params)