perf: 优化tree getIcon方法类型定义

pull/21/MERGE
xingyu 2023-06-08 10:58:55 +08:00
parent 0b7ed771aa
commit a8a973b12c
1 changed files with 1 additions and 1 deletions

View File

@ -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)