diff --git a/changelog.md b/changelog.md index 347f6b0719..db9203c9ef 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ # 更新日志 2.0(2020-07) +- combo新增belowMouse属性,允许popup在点击处弹出 +- combo新增hideWhenAnotherComboOpen属性,开启则其他combo下拉时当前combo收起 - 修复了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 {