Browse Source

EventDialog

luoyifan 3 năm trước cách đây
mục cha
commit
4c0d14e6e2
1 tập tin đã thay đổi với 17 bổ sung17 xóa
  1. 17 17
      src/controls/input/combo.js

+ 17 - 17
src/controls/input/combo.js

@@ -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)