Browse Source

Pull request #1986: BI-88931 fix: 使用多个空字符串作为批量复制值的问题

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit '330d7b3c76c6faf3d4d7cf2566435e5da5a8cb70':
  BI-88931 fix: 使用多个空字符串作为批量复制值的问题
es6
windy 3 years ago
parent
commit
237bf4ef6a
  1. 2
      src/widget/multiselect/multiselect.combo.js
  2. 2
      src/widget/multiselect/multiselect.combo.nobar.js
  3. 2
      src/widget/multiselect/multiselect.insert.combo.js
  4. 2
      src/widget/multiselectlist/multiselectlist.insert.js
  5. 2
      src/widget/multiselectlist/multiselectlist.insert.nobar.js
  6. 2
      src/widget/multiselectlist/multiselectlist.js
  7. 2
      src/widget/singleselect/trigger/searcher.singleselect.js

2
src/widget/multiselect/multiselect.combo.js

@ -395,7 +395,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var map = this._makeMap(this.storeValue.value);
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.pushDistinct(self.storeValue.value, v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}

2
src/widget/multiselect/multiselect.combo.nobar.js

@ -422,7 +422,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
var map = this._makeMap(this.storeValue.value);
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.pushDistinct(self.storeValue.value, v);
BI.remove(self.storeValue.assist, v);
map[v] = v;
}

2
src/widget/multiselect/multiselect.insert.combo.js

@ -407,7 +407,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var map = this._makeMap(this.storeValue.value);
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.pushDistinct(self.storeValue.value, v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v;

2
src/widget/multiselectlist/multiselectlist.insert.js

@ -281,7 +281,7 @@ BI.MultiSelectInsertList = BI.inherit(BI.Single, {
var map = this._makeMap(this.storeValue.value);
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.pushDistinct(self.storeValue.value, v);
map[v] = v;
}
});

2
src/widget/multiselectlist/multiselectlist.insert.nobar.js

@ -285,7 +285,7 @@ BI.MultiSelectInsertNoBarList = BI.inherit(BI.Single, {
var map = this._makeMap(this.storeValue.value);
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.pushDistinct(self.storeValue.value, v);
map[v] = v;
}
});

2
src/widget/multiselectlist/multiselectlist.js

@ -301,7 +301,7 @@ BI.MultiSelectList = BI.inherit(BI.Widget, {
var map = this._makeMap(this.storeValue.value);
BI.each(res.value, function (i, v) {
if (!map[v]) {
self.storeValue.value.push(v);
BI.pushDistinct(self.storeValue.value, v);
map[v] = v;
}
});

2
src/widget/singleselect/trigger/searcher.singleselect.js

@ -108,7 +108,7 @@ BI.SingleSelectSearcher = BI.inherit(BI.Widget, {
},
getKeyword: function () {
return this.editor.getValue();
return this.editor.getKeyword();
},
hasMatched: function () {

Loading…
Cancel
Save