diff --git a/changelog.md b/changelog.md index 272f1c211..ac301c032 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2019-09) +- [视觉]popover弹出框增加圆角 - 文本列表通过复制粘贴的形式选中值的时候发送事件 - 修复tree_value_chooser选中节点的唯一子节点后搜索该子节点,无法取消选中的问题 - button的bubble创建的popup在收起的时候会destroy diff --git a/src/base/layer/layer.popover.js b/src/base/layer/layer.popover.js index 35c895ffd..9a17cba61 100644 --- a/src/base/layer/layer.popover.js +++ b/src/base/layer/layer.popover.js @@ -15,7 +15,7 @@ BI.Popover = BI.inherit(BI.Widget, { _defaultConfig: function () { return BI.extend(BI.Popover.superclass._defaultConfig.apply(this, arguments), { - baseCls: "bi-popover bi-card", + baseCls: "bi-popover bi-card bi-border-radius", // width: 600, // height: 500, size: "normal", // small, normal, big @@ -63,6 +63,7 @@ BI.Popover = BI.inherit(BI.Widget, { cls: "bi-font-bold", height: this._constant.HEADER_HEIGHT, text: o.header, + title: o.header, textAlign: "left" }, left: 20, diff --git a/src/css/base/view/popover.css b/src/css/base/view/popover.css index e69de29bb..3882aa373 100644 --- a/src/css/base/view/popover.css +++ b/src/css/base/view/popover.css @@ -0,0 +1,3 @@ +.bi-popover { + border: 1px solid transparent; +} diff --git a/src/less/base/view/popover.less b/src/less/base/view/popover.less index 4396636cf..4600d797c 100644 --- a/src/less/base/view/popover.less +++ b/src/less/base/view/popover.less @@ -1,4 +1,5 @@ @import "../../index"; .bi-popover { + border: 1px solid transparent; } \ No newline at end of file