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