Browse Source

BI-96759 支持自定义text

es6
guy 3 years ago
parent
commit
bf49b4c670
  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