From 1bfd7bf9d3279d481231505697bb892c066d89d9 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 16 Jul 2020 15:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20combo?= =?UTF-8?q?=E6=96=B0=E5=A2=9EbelowMouse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/base/combination/combo.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 347f6b071..795cc377b 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 f96c40c56..3a17ba0ff 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 {