diff --git a/changelog.md b/changelog.md index f4f928f8d..d64fa93f2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,6 @@ # 更新日志 2.0(2020-11) +- 限制了title的最大高度 - bi.textarea_editor添加setWatermark方法 - 生命周期可以通过属性传递来操作 - 修复了颜色选择器hex框不能输入为空的问题 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); } } 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;