Tree: add updateKeyChildren method

This commit is contained in:
Dreamacro
2017-07-21 16:25:28 +08:00
committed by 杨奕
parent ce72b8414d
commit 9f31626923
5 changed files with 43 additions and 0 deletions

View File

@@ -162,6 +162,10 @@
handleNodeExpand(nodeData, node, instance) {
this.broadcast('ElTreeNode', 'tree-node-expand', node);
this.$emit('node-expand', nodeData, node, instance);
},
updateKeyChildren(key, data) {
if (!this.nodeKey) throw new Error('[Tree] nodeKey is required in updateKeyChild');
this.store.updateChildren(key, data);
}
},