From 4ff331a7e4c068df09308111dd82641fc59c5e64 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 30 Nov 2020 14:21:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?BI-76296=20tooltip=E6=9C=80=E5=A4=9A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA25=E8=A1=8C=E8=B6=85=E5=87=BA=E6=88=AA?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 1 + src/less/base/single/tip/tip.tooltip.less | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index f4f928f8d..c75b10300 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-11) +- title提示最多显示25行 - bi.textarea_editor添加setWatermark方法 - 生命周期可以通过属性传递来操作 - 修复了颜色选择器hex框不能输入为空的问题 diff --git a/src/less/base/single/tip/tip.tooltip.less b/src/less/base/single/tip/tip.tooltip.less index 3c9f1d07a..c9bfc3de9 100644 --- a/src/less/base/single/tip/tip.tooltip.less +++ b/src/less/base/single/tip/tip.tooltip.less @@ -2,6 +2,8 @@ .bi-tooltip{ max-width: 250px; + max-height: 450px; + .overflow-hidden() !important; .border-radius(2px); font-size: 12px; color: @color-bi-text; From d7830edd55965792f4495872154ebaf98b53e127 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 30 Nov 2020 15:01:38 +0800 Subject: [PATCH 2/3] update --- changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index c75b10300..d64fa93f2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,6 @@ # 更新日志 2.0(2020-11) -- title提示最多显示25行 +- 限制了title的最大高度 - bi.textarea_editor添加setWatermark方法 - 生命周期可以通过属性传递来操作 - 修复了颜色选择器hex框不能输入为空的问题 From a9cdc42dfa6af91862f6ec14cc889005df07b3ae Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 30 Nov 2020 15:28:23 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20BI.config?= =?UTF-8?q?(widget)=E6=9C=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/inject.js | 5 ++++- src/core/shortcut.js | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/inject.js b/src/core/inject.js index 89d0bd993..a549abf18 100644 --- a/src/core/inject.js +++ b/src/core/inject.js @@ -56,9 +56,12 @@ }; BI.Configs = BI.Configs || { + getConfigs: function () { + return configFunctions; + }, getConfig: function (type) { return configFunctions[type]; - } + }, }; var actions = {}; diff --git a/src/core/shortcut.js b/src/core/shortcut.js index 204e498cc..1a6568662 100644 --- a/src/core/shortcut.js +++ b/src/core/shortcut.js @@ -35,10 +35,11 @@ function configWidget (type) { var configFunctions = BI.Configs.getConfig(type); if (configFunctions) { - BI.each(configFunctions[type], function (i, cf) { + BI.each(configFunctions, function (i, cf) { BI.Plugin.configWidget(type, cf.fn, cf.args); }); - configFunctions[type] && (configFunctions[type] = null); + var configs = BI.Configs.getConfigs(); + configs[type] && (configs[type] = null); } }