Browse Source

Merge pull request #61 in ~GUY/fineui from ~YOUNG/fineuig:master to master

* commit 'd2a7ca5614c1e5d7ffbbea7b8973bc8e9e825a3f':
  tree
es6
Young 8 years ago
parent
commit
43af7128bb
  1. 10
      bi/base.js
  2. 4
      bi/widget.js
  3. 10
      docs/base.js
  4. 4
      docs/widget.js
  5. 10
      src/base/tree/treeview.js
  6. 4
      src/widget/multiselecttree/multiselecttree.js

10
bi/base.js

@ -1937,6 +1937,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
checkAll: function (checked) { checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked); this.nodes && this.nodes.checkAllNodes(checked);
}, },

4
bi/widget.js

@ -11442,9 +11442,7 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, {
}, },
setValue: function (v) { setValue: function (v) {
this.adapter.setValue({ this.adapter.setValue(v);
value: v || {}
});
}, },
stopSearch: function () { stopSearch: function () {

10
docs/base.js

@ -1937,6 +1937,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
checkAll: function (checked) { checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked); this.nodes && this.nodes.checkAllNodes(checked);
}, },

4
docs/widget.js

@ -11442,9 +11442,7 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, {
}, },
setValue: function (v) { setValue: function (v) {
this.adapter.setValue({ this.adapter.setValue(v);
value: v || {}
});
}, },
stopSearch: function () { stopSearch: function () {

10
src/base/tree/treeview.js

@ -436,6 +436,16 @@ BI.TreeView = BI.inherit(BI.Pane, {
}, },
checkAll: function (checked) { checkAll: function (checked) {
function setNode(children) {
BI.each(children, function (i, child) {
child.halfCheck = false;
setNode(child.children);
});
}
BI.each(this.nodes.getNodes(), function (i, node) {
node.halfCheck = false;
setNode(node.children);
});
this.nodes && this.nodes.checkAllNodes(checked); this.nodes && this.nodes.checkAllNodes(checked);
}, },

4
src/widget/multiselecttree/multiselecttree.js

@ -139,9 +139,7 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, {
}, },
setValue: function (v) { setValue: function (v) {
this.adapter.setValue({ this.adapter.setValue(v);
value: v || {}
});
}, },
stopSearch: function () { stopSearch: function () {

Loading…
Cancel
Save