Table add event @on-expand-tree
This commit is contained in:
parent
5c604d5266
commit
8d2bcbfc8f
1 changed files with 1 additions and 0 deletions
|
@ -846,6 +846,7 @@
|
|||
|
||||
data._isShowChildren = !data._isShowChildren;
|
||||
this.updateDataStatus(rowKey, '_showChildren', data._isShowChildren);
|
||||
this.$emit('on-expand-tree', rowKey, data._isShowChildren);
|
||||
},
|
||||
/**
|
||||
* @description 当修改某内置属性,如 _isShowChildren 时,因当将原 data 对应 _showChildren 也修改,否则修改 data 时,状态会重置
|
||||
|
|
Loading…
Add table
Reference in a new issue