Table no longer modifies the _showChildren field

This commit is contained in:
梁灏 2020-06-28 11:28:06 +08:00
parent 06f2c113ac
commit 836de9f960

View file

@ -837,7 +837,8 @@
this.$nextTick(() => { this.$nextTick(() => {
const newData = this.getDataByRowKey(rowKey); const newData = this.getDataByRowKey(rowKey);
newData._isShowChildren = !newData._isShowChildren; newData._isShowChildren = !newData._isShowChildren;
this.updateDataStatus(rowKey, '_showChildren', newData._isShowChildren); // updateDataStatus _showChildren @on-expand-tree
// this.updateDataStatus(rowKey, '_showChildren', newData._isShowChildren);
}); });
} }
}); });
@ -845,7 +846,8 @@
} }
data._isShowChildren = !data._isShowChildren; data._isShowChildren = !data._isShowChildren;
this.updateDataStatus(rowKey, '_showChildren', data._isShowChildren); // updateDataStatus _showChildren @on-expand-tree
// this.updateDataStatus(rowKey, '_showChildren', data._isShowChildren);
this.$emit('on-expand-tree', rowKey, data._isShowChildren); this.$emit('on-expand-tree', rowKey, data._isShowChildren);
}, },
/** /**