Browse Source

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

* commit 'f89d6c1e8bc5f48e058e5246b5a19e897851be2e':
  BI-53865 refactor: 可配最大最小宽
  BI-53932 fix: 统一单选下拉和复选下拉的新增自定义值的效果
es6
windy 5 years ago
parent
commit
b26a55b436
  1. 1
      changelog.md
  2. 3
      src/case/combo/bubblecombo/popup.bubble.js
  3. 16
      src/widget/singleselect/singleselect.insert.combo.js

1
changelog.md

@ -4,6 +4,7 @@
- 修复了下拉树搜索高亮字符与正常字符间存在间距的问题
- 复选下拉系列的计数器从trigger中拆分, 作为独立的部分
- 增加BI.createElement方法
- 统一了单选下拉和复选下拉添加自定义值的交互效果
2.0(2019-09)
- [视觉]popover弹出框增加圆角

3
src/case/combo/bubblecombo/popup.bubble.js

@ -137,6 +137,9 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
});
return {
type: "bi.bubble_bar_popup_view",
minWidth: o.minWidth,
maxWidth: o.maxWidth,
minHeight: o.minHeight,
ref: function () {
self.popup = this;
},

16
src/widget/singleselect/singleselect.insert.combo.js

@ -82,13 +82,15 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, {
self.fireEvent(BI.SingleSelectInsertCombo.EVENT_STOP);
});
this.trigger.on(BI.SingleSelectTrigger.EVENT_PAUSE, function () {
var keyword = this.getSearcher().getKeyword();
self.storeValue = keyword;
self.combo.setValue(self.storeValue);
self._setStartValue(keyword);
assertShowValue();
self.populate();
self._setStartValue();
if (this.getSearcher().hasMatched()) {
var keyword = this.getSearcher().getKeyword();
self.storeValue = keyword;
self.combo.setValue(self.storeValue);
self._setStartValue(keyword);
assertShowValue();
self.populate();
self._setStartValue();
}
});
this.trigger.on(BI.SingleSelectTrigger.EVENT_SEARCHING, function (keywords) {
var last = BI.last(keywords);

Loading…
Cancel
Save