Browse Source

Merge remote-tracking branch 'origin/master'

es6
Young 6 years ago
parent
commit
d48419d809
  1. 2
      demo/js/case/combo/demo.text_value_down_list_combo.js
  2. 2
      demo/js/widget/slider/demo.slider.js
  3. 3
      dist/base.js
  4. 31
      dist/bundle.js
  5. 30
      dist/bundle.min.js
  6. 4
      dist/demo.js
  7. 31
      dist/fineui.js
  8. 30
      dist/fineui.min.js
  9. 31
      dist/fineui_without_jquery_polyfill.js
  10. 4
      dist/fix/fix.js
  11. 2
      dist/utils.min.js
  12. 28
      dist/widget.js
  13. 3
      src/base/pane.js
  14. 5
      src/widget/multiselect/multiselect.combo.js
  15. 6
      src/widget/multiselect/multiselect.insert.combo.js
  16. 5
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  17. 5
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js
  18. 7
      src/widget/singleslider/singleslider.label.js

2
demo/js/case/combo/demo.text_value_down_list_combo.js

@ -39,7 +39,7 @@ Demo.TextValueDownListCombo = BI.inherit(BI.Widget, {
cls: "dot-e-font" cls: "dot-e-font"
}, { }, {
text: BI.i18nText("BI-Basic_Average_Value"), text: BI.i18nText("BI-Basic_Average_Value"),
value: 4, value: 5,
cls: "dot-e-font" cls: "dot-e-font"
}] }]
}]] }]]

2
demo/js/widget/slider/demo.slider.js

@ -45,7 +45,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
normalSingleSlider.populate(); normalSingleSlider.populate();
var singleSliderLabel = BI.createWidget({ var singleSliderLabel = BI.createWidget({
type: "bi.single_slider", type: "bi.single_slider_label",
width: o.width, width: o.width,
height: o.height, height: o.height,
digit: 0, digit: 0,

3
dist/base.js vendored

@ -275,6 +275,9 @@ BI.Pane = BI.inherit(BI.Widget, {
width: 5 width: 5
}] }]
}); });
// pane在同步方式下由items决定tipText的显示与否
// loading的异步情况下由loaded后对面板的populate的时机决定
this.setTipVisible(false);
if (o.overlap === true) { if (o.overlap === true) {
if (!BI.Layers.has(this.getName())) { if (!BI.Layers.has(this.getName())) {
BI.createWidget({ BI.createWidget({

31
dist/bundle.js vendored

@ -35571,6 +35571,9 @@ BI.Pane = BI.inherit(BI.Widget, {
width: 5 width: 5
}] }]
}); });
// pane在同步方式下由items决定tipText的显示与否
// loading的异步情况下由loaded后对面板的populate的时机决定
this.setTipVisible(false);
if (o.overlap === true) { if (o.overlap === true) {
if (!BI.Layers.has(this.getName())) { if (!BI.Layers.has(this.getName())) {
BI.createWidget({ BI.createWidget({
@ -66884,6 +66887,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -66896,9 +66900,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -66952,6 +66958,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -66959,6 +66966,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67282,6 +67290,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67294,9 +67303,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -67327,6 +67338,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -67334,6 +67347,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67668,6 +67682,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67680,9 +67695,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -67713,6 +67730,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -67720,6 +67738,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -72855,6 +72874,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -72867,9 +72887,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -72925,6 +72947,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -72932,6 +72955,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -76566,10 +76590,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -76596,7 +76619,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -76668,7 +76691,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

30
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/demo.js vendored

@ -1583,7 +1583,7 @@ Demo.TextValueDownListCombo = BI.inherit(BI.Widget, {
cls: "dot-e-font" cls: "dot-e-font"
}, { }, {
text: BI.i18nText("BI-Basic_Average_Value"), text: BI.i18nText("BI-Basic_Average_Value"),
value: 4, value: 5,
cls: "dot-e-font" cls: "dot-e-font"
}] }]
}]] }]]
@ -11400,7 +11400,7 @@ Demo.Slider = BI.inherit(BI.Widget, {
normalSingleSlider.populate(); normalSingleSlider.populate();
var singleSliderLabel = BI.createWidget({ var singleSliderLabel = BI.createWidget({
type: "bi.single_slider", type: "bi.single_slider_label",
width: o.width, width: o.width,
height: o.height, height: o.height,
digit: 0, digit: 0,

31
dist/fineui.js vendored

@ -35813,6 +35813,9 @@ BI.Pane = BI.inherit(BI.Widget, {
width: 5 width: 5
}] }]
}); });
// pane在同步方式下由items决定tipText的显示与否
// loading的异步情况下由loaded后对面板的populate的时机决定
this.setTipVisible(false);
if (o.overlap === true) { if (o.overlap === true) {
if (!BI.Layers.has(this.getName())) { if (!BI.Layers.has(this.getName())) {
BI.createWidget({ BI.createWidget({
@ -67126,6 +67129,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67138,9 +67142,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -67194,6 +67200,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -67201,6 +67208,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67524,6 +67532,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67536,9 +67545,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -67569,6 +67580,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -67576,6 +67589,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67910,6 +67924,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -67922,9 +67937,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -67955,6 +67972,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -67962,6 +67980,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -73097,6 +73116,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -73109,9 +73129,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -73167,6 +73189,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -73174,6 +73197,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -76808,10 +76832,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -76838,7 +76861,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -76910,7 +76933,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

30
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

31
dist/fineui_without_jquery_polyfill.js vendored

@ -24403,6 +24403,9 @@ BI.Pane = BI.inherit(BI.Widget, {
width: 5 width: 5
}] }]
}); });
// pane在同步方式下由items决定tipText的显示与否
// loading的异步情况下由loaded后对面板的populate的时机决定
this.setTipVisible(false);
if (o.overlap === true) { if (o.overlap === true) {
if (!BI.Layers.has(this.getName())) { if (!BI.Layers.has(this.getName())) {
BI.createWidget({ BI.createWidget({
@ -50012,6 +50015,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -50024,9 +50028,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -50080,6 +50086,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -50087,6 +50094,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -50410,6 +50418,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -50422,9 +50431,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -50455,6 +50466,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -50462,6 +50475,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -50796,6 +50810,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -50808,9 +50823,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -50841,6 +50858,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -50848,6 +50866,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -55983,6 +56002,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -55995,9 +56015,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -56053,6 +56075,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -56060,6 +56083,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -59694,10 +59718,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -59724,7 +59747,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -59796,7 +59819,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

4
dist/fix/fix.js vendored

@ -1330,12 +1330,12 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
defineProps(this, keys); defineProps(this, keys);
childContext && defineContext(this, childContext); childContext && defineContext(this, childContext);
this.$$model && (this.model.__ob__ = this.$$model.__ob__); this.$$model && (this.model.__ob__ = this.$$model.__ob__);
initMixins(this, mixins);
this._init(); this._init();
initState(this, state); initState(this, state);
initMixins(this, mixins);
initMethods(this, actions);
initComputed(this, computed); initComputed(this, computed);
initWatch(this, watch$$1); initWatch(this, watch$$1);
initMethods(this, actions);
this.created && this.created(); this.created && this.created();
if (this.$$model) { if (this.$$model) {
return this.model; return this.model;

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

28
dist/widget.js vendored

@ -8420,6 +8420,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -8432,9 +8433,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -8488,6 +8491,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -8495,6 +8499,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -8818,6 +8823,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -8830,9 +8836,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -8863,6 +8871,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -8870,6 +8880,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -9204,6 +9215,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -9216,9 +9228,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -9249,6 +9263,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -9256,6 +9271,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -14391,6 +14407,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -14403,9 +14420,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -14461,6 +14480,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -14468,6 +14488,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -18102,10 +18123,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -18132,7 +18152,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -18204,7 +18224,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

3
src/base/pane.js

@ -74,6 +74,9 @@ BI.Pane = BI.inherit(BI.Widget, {
width: 5 width: 5
}] }]
}); });
// pane在同步方式下由items决定tipText的显示与否
// loading的异步情况下由loaded后对面板的populate的时机决定
this.setTipVisible(false);
if (o.overlap === true) { if (o.overlap === true) {
if (!BI.Layers.has(this.getName())) { if (!BI.Layers.has(this.getName())) {
BI.createWidget({ BI.createWidget({

5
src/widget/multiselect/multiselect.combo.js

@ -271,6 +271,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -283,9 +284,11 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -339,6 +342,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -346,6 +350,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });

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

@ -283,6 +283,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -295,9 +296,11 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -328,6 +331,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
// value更新的时候assist也需要更新
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -335,6 +340,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });

5
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -295,6 +295,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -307,9 +308,11 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -340,6 +343,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -347,6 +351,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });

5
src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js

@ -282,6 +282,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(items, function (i, v) { BI.each(items, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });
@ -294,9 +295,11 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
var newItems = []; var newItems = [];
BI.each(items, function (i, item) { BI.each(items, function (i, item) {
if (BI.isNotNull(selectedMap[items[i]])) { if (BI.isNotNull(selectedMap[items[i]])) {
self.storeValue.assist && self.storeValue.assist.push(selectedMap[items[i]]);
delete selectedMap[items[i]]; delete selectedMap[items[i]];
} }
if (BI.isNull(notSelectedMap[items[i]])) { if (BI.isNull(notSelectedMap[items[i]])) {
BI.remove(self.storeValue.assist, item);
newItems.push(item); newItems.push(item);
} }
}); });
@ -352,6 +355,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.value, function (i, v) { BI.each(res.value, function (i, v) {
if (!map[v]) { if (!map[v]) {
self.storeValue.value.push(v); self.storeValue.value.push(v);
BI.remove(self.storeValue.assist, v);
map[v] = v; map[v] = v;
} }
}); });
@ -359,6 +363,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
BI.each(res.assist, function (i, v) { BI.each(res.assist, function (i, v) {
if (BI.isNotNull(map[v])) { if (BI.isNotNull(map[v])) {
change = true; change = true;
self.storeValue.assist && self.storeValue.assist.push(map[v]);
delete map[v]; delete map[v];
} }
}); });

7
src/widget/singleslider/singleslider.label.js

@ -110,10 +110,9 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.absolute", type: "bi.horizontal_auto",
items: [this.label] items: [this.label]
}], }],
rgap: c.EDITOR_WIDTH,
height: c.EDITOR_HEIGHT height: c.EDITOR_HEIGHT
}, },
top: 0, top: 0,
@ -140,7 +139,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
self._setSliderPosition(significantPercent); self._setSliderPosition(significantPercent);
var v = self._getValueByPercent(significantPercent); var v = self._getValueByPercent(significantPercent);
v = o.digit === false ? v : v.toFixed(o.digit); v = o.digit === false ? v : v.toFixed(o.digit);
self.label.setValue(v); self.label.setValue(v + o.unit);
self.value = v; self.value = v;
self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE); self.fireEvent(BI.SingleSliderLabel.EVENT_CHANGE);
} }
@ -212,7 +211,7 @@ BI.SingleSliderLabel = BI.inherit(BI.Widget, {
}, },
_setLabelPosition: function (percent) { _setLabelPosition: function (percent) {
this.label.element.css({left: percent + "%"}); // this.label.element.css({left: percent + "%"});
}, },
_setSliderPosition: function (percent) { _setSliderPosition: function (percent) {

Loading…
Cancel
Save