Browse Source

BI-47435 fix: combo逻辑优化

es6
imp 5 years ago
parent
commit
d5018723aa
  1. 4
      src/base/combination/combo.js
  2. 1
      src/widget/downlist/combo.downlist.js
  3. 1
      src/widget/multilayerdownlist/combo.downlist.js

4
src/base/combination/combo.js

@ -266,6 +266,10 @@ BI.Combo = BI.inherit(BI.Widget, {
if ((this.element.find(e.target).length > 0) if ((this.element.find(e.target).length > 0)
|| (this.popupView && this.popupView.element.find(e.target).length > 0) || (this.popupView && this.popupView.element.find(e.target).length > 0)
|| e.target.className === "CodeMirror-cursor" || BI.Widget._renderEngine.createElement(e.target).closest(".CodeMirror-hints").length > 0) {// BI-9887 CodeMirror的公式弹框需要特殊处理下 || e.target.className === "CodeMirror-cursor" || BI.Widget._renderEngine.createElement(e.target).closest(".CodeMirror-hints").length > 0) {// BI-9887 CodeMirror的公式弹框需要特殊处理下
if (this.options.direction.indexOf("innerLeft") > -1 || this.options.direction.indexOf("innerRight") > -1) {
this.adjustWidth();
this.adjustHeight();
}
return; return;
} }
var isHide = this.options.hideChecker.apply(this, [e]); var isHide = this.options.hideChecker.apply(this, [e]);

1
src/widget/downlist/combo.downlist.js

@ -54,7 +54,6 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
}), }),
popup: { popup: {
el: this.popupview, el: this.popupview,
stopPropagation: true,
maxHeight: 1000, maxHeight: 1000,
minWidth: 140 minWidth: 140
} }

1
src/widget/multilayerdownlist/combo.downlist.js

@ -54,7 +54,6 @@ BI.DownListCombo = BI.inherit(BI.Widget, {
}), }),
popup: { popup: {
el: this.popupview, el: this.popupview,
stopPropagation: true,
maxHeight: 1000 maxHeight: 1000
} }
}); });

Loading…
Cancel
Save