Browse Source

拼音筛选问题 / 对话框多伦打开问题

luoyifan 4 years ago
parent
commit
a45102f087
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/controls/input/combo.js

+ 2 - 8
src/controls/input/combo.js

@@ -89,6 +89,7 @@ export default function () {
                     return
                 }
 
+                // 点击后下拉
                 if (that.isExpanded) {
                     that.collapse()
 
@@ -106,13 +107,13 @@ export default function () {
                         dataSourceReload(this)
                     }
 
+                    // 点击后下拉
                     $(this.el.dom).on('click', toggle.bind(this))
                 },
                 destory() {
                     $(this.el.dom).off('click', toggle.bind(this))
                 },
                 beforequery(e) {
-                    console.log('beforequery', e)
                     const {query, combo} = e
 
                     if (!e.forceAll && query) {
@@ -129,13 +130,6 @@ export default function () {
                     combo.expand();
                     return false;
                 }
-                // focus: {
-                //     // 获得焦点后自动下拉
-                //     fn(sender) {
-                //         sender.expand();
-                //         this.doQuery(this.allQuery, true);
-                //     },
-                // },
             })
 
             initComponent.call(this)