Browse Source

Pull request #1439: BI-71041 fix: searcher配置允许搜空格后输入空格不应该退出搜索

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

* commit '628ec05bad7d28ea6f9dd470a4247d9f76b3f129':
  update
  BI-71041 fix: searcher配置允许搜空格后输入空格不应该退出搜索
es6
guy 4 years ago
parent
commit
d8d19f80ec
  1. 1
      changelog.md
  2. 5
      src/base/combination/searcher.js
  3. 2
      src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-08)
- 修复了searcher在允许搜索的情况下输入空格直接退出搜索的问题
- 修复了复选下拉系列'点按空格添加完全匹配项'添加的是显示值而非实际值的问题
- search_text_value_combo支持水印
- BI.makeObject 方法支持传入iteratee

5
src/base/combination/searcher.js

@ -80,7 +80,10 @@ BI.Searcher = BI.inherit(BI.Widget, {
search();
break;
case BI.Events.PAUSE:
self._pauseSearch();
// 可以搜索空格的情况下输入空格不做处理, 展示上一次的结果
if (!o.allowSearchBlank) {
self._pauseSearch();
}
break;
}
});

2
src/case/combo/searchtextvaluecombo/trigger.searchtextvalue.js

@ -44,7 +44,7 @@ BI.SearchTextValueTrigger = BI.inherit(BI.Trigger, {
var keyword = obj.keyword;
var finding = BI.Func.getSearchResult(o.items, keyword);
var matched = finding.match, find = finding.find;
callback(find, matched);
callback(matched, find);
},
listeners: [{
eventName: BI.Searcher.EVENT_CHANGE,

Loading…
Cancel
Save