perf: 优化tree getIcon方法类型定义
parent
0b7ed771aa
commit
a8a973b12c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue