Browse Source

BI-109153 feat: bi工程内,因为禁用而置灰的按钮, 对应的tooltip要改为正常底色

es6
zsmj 2 years ago
parent
commit
ea5b41bb0e
  1. 2
      src/base/single/0.single.js

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

@ -30,7 +30,7 @@ BI.Single = BI.inherit(BI.Widget, {
if (BI.isPlainObject(title)) { if (BI.isPlainObject(title)) {
tooltipOpt = title; tooltipOpt = title;
} else { } else {
tooltipOpt.level = this.getTipType() || (this.isEnabled() ? "success" : "warning"); tooltipOpt.level = this.getTipType() || "success";
tooltipOpt.text = tooltipOpt.level === "success" ? title : (this.getWarningTitle() || title); tooltipOpt.text = tooltipOpt.level === "success" ? title : (this.getWarningTitle() || title);
} }
if (BI.isKey(tooltipOpt.text)) { if (BI.isKey(tooltipOpt.text)) {

Loading…
Cancel
Save