perf: 优化tree getIcon方法类型定义
parent
0b7ed771aa
commit
a8a973b12c
|
@ -110,7 +110,7 @@ export default defineComponent({
|
||||||
getSelectedNode
|
getSelectedNode
|
||||||
} = useTree(treeDataRef, getFieldNames)
|
} = useTree(treeDataRef, getFieldNames)
|
||||||
|
|
||||||
function getIcon(params: Recordable, icon?: string) {
|
function getIcon(params: TreeItem, icon?: string) {
|
||||||
if (!icon) {
|
if (!icon) {
|
||||||
if (props.renderIcon && isFunction(props.renderIcon)) {
|
if (props.renderIcon && isFunction(props.renderIcon)) {
|
||||||
return props.renderIcon(params)
|
return props.renderIcon(params)
|
||||||
|
|
Loading…
Reference in New Issue