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

Method _initDefaultCheckedNode

src/tree/model/tree-store.js:114–120  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

112 }
113
114 _initDefaultCheckedNode(node) {
115 const defaultCheckedKeys = this.defaultCheckedKeys || [];
116
117 if (defaultCheckedKeys.indexOf(node.key) !== -1) {
118 node.setChecked(true, !this.checkStrictly);
119 }
120 }
121
122 setDefaultCheckedKey(newVal) {
123 if (newVal !== this.defaultCheckedKeys) {

Callers 1

constructorMethod · 0.80

Calls 1

setCheckedMethod · 0.45

Tested by

no test coverage detected