From bf49b4c67039831334d503cdd21c7dfc94ecd1df Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 15 Nov 2021 23:01:42 +0800 Subject: [PATCH] =?UTF-8?q?BI-96759=20=E6=94=AF=E6=8C=81=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/tip/tip.toast.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/single/tip/tip.toast.js b/src/base/single/tip/tip.toast.js index 68e59a88a..aca66e47a 100644 --- a/src/base/single/tip/tip.toast.js +++ b/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 }];