Explorar el Código

Update node.js

wangjingf hace 7 años
padre
commit
612f952804
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      packages/tree/src/model/node.js

+ 3 - 1
packages/tree/src/model/node.js

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