This commit is contained in:
梁灏 2020-09-18 11:40:10 +08:00
parent 462eff37c5
commit bd95effa76

View file

@ -274,6 +274,11 @@
loadData: {
type: Function
},
// 4.4.0
updateShowChildren: {
type: Boolean,
default: false
},
// 4.1.0
contextMenu: {
type: Boolean,
@ -851,7 +856,8 @@
data._isShowChildren = !data._isShowChildren;
// updateDataStatus _showChildren @on-expand-tree
// this.updateDataStatus(rowKey, '_showChildren', data._isShowChildren);
// #675 updateShowChildren
if (this.updateShowChildren) this.updateDataStatus(rowKey, '_showChildren', data._isShowChildren);
this.$emit('on-expand-tree', rowKey, data._isShowChildren);
},
/**