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