guy 7 years ago
parent
commit
59096e9241
  1. 14
      dist/_fineui.min.js
  2. 14
      dist/bundle.js
  3. 14
      dist/bundle.min.js
  4. 14
      dist/fineui.min.js
  5. 14
      dist/widget.js
  6. 14
      src/widget/multitree/trigger/searcher.multi.tree.js

14
dist/_fineui.min.js vendored

File diff suppressed because one or more lines are too long

14
dist/bundle.js vendored

@ -100625,6 +100625,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
var o = this.options;
ob || (ob = {});
ob.value || (ob.value = {});
var count = 0;
if (BI.isNumber(ob)) {
this.editor.setState(ob);
} else if (BI.size(ob.value) === 0) {
@ -100634,8 +100635,16 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
BI.each(ob.value, function (name, children) {
var childNodes = getChildrenNode(children);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; ";
if (childNodes !== "") {
count++;
}
});
this.editor.setState(text);
if (count > 20) {
this.editor.setState(BI.Selection.Multi);
} else {
this.editor.setState(text);
}
}
function getChildrenNode (ob) {
@ -100645,6 +100654,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
index++;
var childNodes = getChildrenNode(children);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ",");
if (childNodes !== "") {
count++;
}
});
return text;
}

14
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

14
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

14
dist/widget.js vendored

@ -13473,6 +13473,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
var o = this.options;
ob || (ob = {});
ob.value || (ob.value = {});
var count = 0;
if (BI.isNumber(ob)) {
this.editor.setState(ob);
} else if (BI.size(ob.value) === 0) {
@ -13482,8 +13483,16 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
BI.each(ob.value, function (name, children) {
var childNodes = getChildrenNode(children);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; ";
if (childNodes !== "") {
count++;
}
});
this.editor.setState(text);
if (count > 20) {
this.editor.setState(BI.Selection.Multi);
} else {
this.editor.setState(text);
}
}
function getChildrenNode (ob) {
@ -13493,6 +13502,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
index++;
var childNodes = getChildrenNode(children);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ",");
if (childNodes !== "") {
count++;
}
});
return text;
}

14
src/widget/multitree/trigger/searcher.multi.tree.js

@ -111,6 +111,7 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
var o = this.options;
ob || (ob = {});
ob.value || (ob.value = {});
var count = 0;
if (BI.isNumber(ob)) {
this.editor.setState(ob);
} else if (BI.size(ob.value) === 0) {
@ -120,8 +121,16 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
BI.each(ob.value, function (name, children) {
var childNodes = getChildrenNode(children);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; ";
if (childNodes !== "") {
count++;
}
});
this.editor.setState(text);
if (count > 20) {
this.editor.setState(BI.Selection.Multi);
} else {
this.editor.setState(text);
}
}
function getChildrenNode (ob) {
@ -131,6 +140,9 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
index++;
var childNodes = getChildrenNode(children);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + (index === size ? "" : ",");
if (childNodes !== "") {
count++;
}
});
return text;
}

Loading…
Cancel
Save