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)