mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 20:18:22 +08:00
fix: treeSelect treeData[i].children support null #81
This commit is contained in:
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…
Reference in New Issue
Block a user