fix: treeSelect treeData[i].children support null #81

pull/82/head
tjz 6 years ago
parent 675f918149
commit 1367cfc70a

@ -58,7 +58,7 @@ export default {
// label: newLabel,
title: newTitle || newLabel,
}
this.updateTreeData(children)
this.updateTreeData(children || [])
Object.assign(list[i], item)
}
},
@ -72,7 +72,7 @@ export default {
dropdownClassName,
...restProps
} = props
this.updateTreeData(props.treeData)
this.updateTreeData(props.treeData || [])
const cls = {
[`${prefixCls}-lg`]: size === 'large',
[`${prefixCls}-sm`]: size === 'small',

Loading…
Cancel
Save