iapyang 7 years ago
parent
commit
9faa34164c
  1. 14
      dist/bundle.js
  2. 14
      dist/fineui.js
  3. 14
      dist/widget.js
  4. 14
      src/widget/singleselect/singleselectlist.insert.js

14
dist/bundle.js vendored

@ -104843,14 +104843,14 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
eventName: BI.Searcher.EVENT_START, eventName: BI.Searcher.EVENT_START,
action: function () { action: function () {
self._showSearcherPane(); self._showSearcherPane();
self._setStartValue(""); self._setStartValue();
this.setValue(BI.deepClone(self.storeValue)); this.setValue(BI.deepClone(self.storeValue));
} }
}, { }, {
eventName: BI.Searcher.EVENT_STOP, eventName: BI.Searcher.EVENT_STOP,
action: function () { action: function () {
self._showAdapter(); self._showAdapter();
self._setStartValue(""); self._setStartValue();
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
// 需要刷新回到初始界面,否则搜索的结果不能放在最前面 // 需要刷新回到初始界面,否则搜索的结果不能放在最前面
self.adapter.populate(); self.adapter.populate();
@ -104872,7 +104872,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self._setStartValue(keyword); self._setStartValue(keyword);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);
}); });
} else { } else {
@ -104899,7 +104899,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
} else { } else {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
@ -104954,9 +104954,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
this.trigger.stopEditing(); this.trigger.stopEditing();
}, },
_assertValue: function (val) { _assertValue: function () {},
val || (val = "");
},
_makeMap: function (values) { _makeMap: function (values) {
return BI.makeObject(values || []); return BI.makeObject(values || []);
@ -105064,7 +105062,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || ""; this.storeValue = v;
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

14
dist/fineui.js vendored

@ -105086,14 +105086,14 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
eventName: BI.Searcher.EVENT_START, eventName: BI.Searcher.EVENT_START,
action: function () { action: function () {
self._showSearcherPane(); self._showSearcherPane();
self._setStartValue(""); self._setStartValue();
this.setValue(BI.deepClone(self.storeValue)); this.setValue(BI.deepClone(self.storeValue));
} }
}, { }, {
eventName: BI.Searcher.EVENT_STOP, eventName: BI.Searcher.EVENT_STOP,
action: function () { action: function () {
self._showAdapter(); self._showAdapter();
self._setStartValue(""); self._setStartValue();
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
// 需要刷新回到初始界面,否则搜索的结果不能放在最前面 // 需要刷新回到初始界面,否则搜索的结果不能放在最前面
self.adapter.populate(); self.adapter.populate();
@ -105115,7 +105115,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self._setStartValue(keyword); self._setStartValue(keyword);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);
}); });
} else { } else {
@ -105142,7 +105142,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
} else { } else {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
@ -105197,9 +105197,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
this.trigger.stopEditing(); this.trigger.stopEditing();
}, },
_assertValue: function (val) { _assertValue: function () {},
val || (val = "");
},
_makeMap: function (values) { _makeMap: function (values) {
return BI.makeObject(values || []); return BI.makeObject(values || []);
@ -105307,7 +105305,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || ""; this.storeValue = v;
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

14
dist/widget.js vendored

@ -17382,14 +17382,14 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
eventName: BI.Searcher.EVENT_START, eventName: BI.Searcher.EVENT_START,
action: function () { action: function () {
self._showSearcherPane(); self._showSearcherPane();
self._setStartValue(""); self._setStartValue();
this.setValue(BI.deepClone(self.storeValue)); this.setValue(BI.deepClone(self.storeValue));
} }
}, { }, {
eventName: BI.Searcher.EVENT_STOP, eventName: BI.Searcher.EVENT_STOP,
action: function () { action: function () {
self._showAdapter(); self._showAdapter();
self._setStartValue(""); self._setStartValue();
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
// 需要刷新回到初始界面,否则搜索的结果不能放在最前面 // 需要刷新回到初始界面,否则搜索的结果不能放在最前面
self.adapter.populate(); self.adapter.populate();
@ -17411,7 +17411,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self._setStartValue(keyword); self._setStartValue(keyword);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);
}); });
} else { } else {
@ -17438,7 +17438,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
} else { } else {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
@ -17493,9 +17493,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
this.trigger.stopEditing(); this.trigger.stopEditing();
}, },
_assertValue: function (val) { _assertValue: function () {},
val || (val = "");
},
_makeMap: function (values) { _makeMap: function (values) {
return BI.makeObject(values || []); return BI.makeObject(values || []);
@ -17603,7 +17601,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || ""; this.storeValue = v;
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

14
src/widget/singleselect/singleselectlist.insert.js

@ -71,14 +71,14 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
eventName: BI.Searcher.EVENT_START, eventName: BI.Searcher.EVENT_START,
action: function () { action: function () {
self._showSearcherPane(); self._showSearcherPane();
self._setStartValue(""); self._setStartValue();
this.setValue(BI.deepClone(self.storeValue)); this.setValue(BI.deepClone(self.storeValue));
} }
}, { }, {
eventName: BI.Searcher.EVENT_STOP, eventName: BI.Searcher.EVENT_STOP,
action: function () { action: function () {
self._showAdapter(); self._showAdapter();
self._setStartValue(""); self._setStartValue();
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
// 需要刷新回到初始界面,否则搜索的结果不能放在最前面 // 需要刷新回到初始界面,否则搜索的结果不能放在最前面
self.adapter.populate(); self.adapter.populate();
@ -100,7 +100,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self._setStartValue(keyword); self._setStartValue(keyword);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE); self.fireEvent(BI.SingleSelectInsertList.EVENT_CHANGE);
}); });
} else { } else {
@ -127,7 +127,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
self.adapter.populate(); self.adapter.populate();
self._setStartValue(""); self._setStartValue();
} else { } else {
self.adapter.setValue(self.storeValue); self.adapter.setValue(self.storeValue);
assertShowValue(); assertShowValue();
@ -182,9 +182,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
this.trigger.stopEditing(); this.trigger.stopEditing();
}, },
_assertValue: function (val) { _assertValue: function () {},
val || (val = "");
},
_makeMap: function (values) { _makeMap: function (values) {
return BI.makeObject(values || []); return BI.makeObject(values || []);
@ -292,7 +290,7 @@ BI.SingleSelectInsertList = BI.inherit(BI.Widget, {
// this.trigger.adjustView(); // this.trigger.adjustView();
}, },
setValue: function (v) { setValue: function (v) {
this.storeValue = v || ""; this.storeValue = v;
this.adapter.setValue(this.storeValue); this.adapter.setValue(this.storeValue);
this.trigger.setValue(this.storeValue); this.trigger.setValue(this.storeValue);
}, },

Loading…
Cancel
Save