diff --git a/changelog.md b/changelog.md index 347f6b0719..795cc377b1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-07) +- combo新增belowMouse属性,允许popup在点击处弹出 - 修复了datePicker在setValue的时候没有动态刷新可用月份的问题 - 同步复选下拉及其面板新增getAllValue获取所有已选值 - 同步复选下拉树及其面板新增getAllValue获取完整的选中树节点 diff --git a/src/base/combination/combo.js b/src/base/combination/combo.js index f96c40c562..3a17ba0ff8 100644 --- a/src/base/combination/combo.js +++ b/src/base/combination/combo.js @@ -31,7 +31,8 @@ el: {}, popup: {}, comboClass: "bi-combo-popup", - hoverClass: "bi-combo-hover" + hoverClass: "bi-combo-hover", + belowMouse: false }); }, @@ -349,7 +350,7 @@ } var isVisible = this.popupView.isVisible(); this.popupView.visible(); - var combo = BI.isNotNull(e) ? { + var combo = (o.belowMouse && BI.isNotNull(e)) ? { element: { offset: function () { return {