MCPcopy Create free account
hub / github.com/ElemeFE/element-react / setData

Method setData

src/tree/model/tree-store.js:63–69  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

61 }
62
63 setData(newVal) {
64 const instanceChanged = newVal !== this.root.data;
65 this.root.setData(newVal);
66 if (instanceChanged) {
67 this._initDefaultCheckedNodes();
68 }
69 }
70
71 getNode(data) {
72 const key = typeof data !== 'object' ? data : getNodeKey(this.key, data);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected