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