Browse Source

无JIRA fix: titile问题

es6
zsmj 2 years ago
parent
commit
83aaa703b6
  1. 2
      src/base/single/0.single.js
  2. 3
      src/base/single/button/buttons/button.js

2
src/base/single/0.single.js

@ -35,7 +35,7 @@ BI.Single = BI.inherit(BI.Widget, {
} else {
tooltipOpt.level = this.getTipType() || "success";
// 由于以前的用法,存在大量disabled:true搭配warningTitle的情况,所以这里做一个兼容,disabled:true的情况下,依然优先显示warningTitle,避免只设置了warningTitle而没有设置title的情况
if (BI.isNull(o.tipType && !this.isEnabled())) {
if (BI.isNull(o.tipType) && !this.isEnabled()) {
tooltipOpt.text = (this.getWarningTitle() || title);
} else {
tooltipOpt.text = tooltipOpt.level === "success" ? title : (this.getWarningTitle() || title);

3
src/base/single/button/buttons/button.js

@ -147,7 +147,8 @@
rgap: o.rgap,
element: this,
text: o.text,
value: o.value
value: o.value,
title: null,
});
}
var classArr = ["block", "clear", "ghost", "plain", "loading", "light"];

Loading…
Cancel
Save