Merge pull request #11430 from wangjingf/dev

Tree : mark node data in lazy mode (#10684)
This commit is contained in:
hetech 2018-06-04 11:14:40 +08:00 committed by GitHub
commit 96df89eca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,9 @@ export default class Node {
} else if (this.level > 0 && store.lazy && store.defaultExpandAll) {
this.expand();
}
if (!Array.isArray(this.data)) {
markNodeData(this, this.data);
}
if (!this.data) return;
const defaultExpandedKeys = store.defaultExpandedKeys;
const key = store.key;