Browse Source

Merge pull request #1163 in VISUAL/fineui from ~WINDY/fineui:master to master

* commit '06191c125778ca12be78d362c02d54f71f02fd56':
  无JIRA任务 refactor: 同步下valueChooser系的代码
master
guy 5 years ago
parent
commit
071b27d908
  1. 2
      src/component/treevaluechooser/abstract.treevaluechooser.js
  2. 2
      src/component/valuechooser/abstract.valuechooser.js

2
src/component/treevaluechooser/abstract.treevaluechooser.js

@ -16,7 +16,7 @@ BI.AbstractTreeValueChooser = BI.inherit(BI.Widget, {
var text = v;
if (BI.isNotNull(this.items)) {
BI.some(this.items, function (i, item) {
if (item.value + "" === v) {
if (item.value === v || item.value + "" === v) {
text = item.text;
return true;
}

2
src/component/valuechooser/abstract.valuechooser.js

@ -25,7 +25,7 @@ BI.AbstractValueChooser = BI.inherit(BI.Widget, {
if (BI.isNotNull(this.items)) {
BI.some(this.items, function (i, item) {
// 把value都换成字符串
if (item.value + "" === v) {
if (item.value === v || item.value + "" === v) {
text = item.text;
return true;
}

Loading…
Cancel
Save