fix #675
This commit is contained in:
parent
462eff37c5
commit
bd95effa76
1 changed files with 7 additions and 1 deletions
|
@ -274,6 +274,11 @@
|
||||||
loadData: {
|
loadData: {
|
||||||
type: Function
|
type: Function
|
||||||
},
|
},
|
||||||
|
// 4.4.0
|
||||||
|
updateShowChildren: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
// 4.1.0
|
// 4.1.0
|
||||||
contextMenu: {
|
contextMenu: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -851,7 +856,8 @@
|
||||||
|
|
||||||
data._isShowChildren = !data._isShowChildren;
|
data._isShowChildren = !data._isShowChildren;
|
||||||
// 由于 updateDataStatus 是基于原数据修改,导致单选、多选等状态重置,所以暂不处理 _showChildren 状态,而是通过事件 @on-expand-tree
|
// 由于 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);
|
this.$emit('on-expand-tree', rowKey, data._isShowChildren);
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue