|
@@ -113,23 +113,23 @@ export default function () {
|
|
|
destory() {
|
|
|
$(this.el.dom).off('click', toggle.bind(this))
|
|
|
},
|
|
|
- beforequery(e) {
|
|
|
- const {query, combo} = e
|
|
|
-
|
|
|
- if (!e.forceAll && query) {
|
|
|
- combo.store.filterBy(function (record, id) {
|
|
|
- const text = record.get(combo.displayField)
|
|
|
- // 用拼音筛选的方式
|
|
|
- return keywordFilter(query, text, id)
|
|
|
- });
|
|
|
- combo.expand();
|
|
|
- return false;
|
|
|
- }
|
|
|
-
|
|
|
- combo.store.clearFilter()
|
|
|
- combo.expand();
|
|
|
- return false;
|
|
|
- }
|
|
|
+ // beforequery(e) {
|
|
|
+ // const {query, combo} = e
|
|
|
+ //
|
|
|
+ // if (!e.forceAll && query) {
|
|
|
+ // combo.store.filterBy(function (record, id) {
|
|
|
+ // const text = record.get(combo.displayField)
|
|
|
+ // // 用拼音筛选的方式
|
|
|
+ // return keywordFilter(query, text, id)
|
|
|
+ // });
|
|
|
+ // combo.expand();
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
+ //
|
|
|
+ // combo.store.clearFilter()
|
|
|
+ // combo.expand();
|
|
|
+ // return false;
|
|
|
+ // }
|
|
|
})
|
|
|
|
|
|
initComponent.call(this)
|