Browse Source

Pull request #2281: BI-96759 支持自定义text

Merge in VISUAL/fineui from ~GUY/fineui:master to master

* commit '89482f8f4b3d4230bffc344942ab923687d4cd45':
  BI-96759 支持自定义text
es6
guy 3 years ago
parent
commit
88930ae56c
  1. 4
      src/base/single/tip/tip.toast.js

4
src/base/single/tip/tip.toast.js

@ -61,13 +61,13 @@ BI.Toast = BI.inherit(BI.Tip, {
cls: cls + " toast-icon",
width: 36
}, {
el: BI.isString(o.text) ? {
el: BI.isPlainObject(o.text) ? o.text : {
type: "bi.label",
whiteSpace: "normal",
text: o.text,
textHeight: 16,
textAlign: "left"
} : o.text,
},
rgap: o.autoClose ? this._const.hgap : 0
}];

Loading…
Cancel
Save