From 33aa69fcbc6bf9b9f346f95abe15db273237f2cc Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 9 Nov 2021 17:21:39 +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 ++-- src/less/base/single/tip/tip.toast.less | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/base/single/tip/tip.toast.js b/src/base/single/tip/tip.toast.js index afd444fd1..68e59a88a 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: { + el: BI.isString(o.text) ? { type: "bi.label", whiteSpace: "normal", text: o.text, textHeight: 16, textAlign: "left" - }, + } : o.text, rgap: o.autoClose ? this._const.hgap : 0 }]; diff --git a/src/less/base/single/tip/tip.toast.less b/src/less/base/single/tip/tip.toast.less index ef682969a..6ac76d4a6 100644 --- a/src/less/base/single/tip/tip.toast.less +++ b/src/less/base/single/tip/tip.toast.less @@ -4,6 +4,7 @@ color: @color-bi-text; max-width: 400px; min-width: 150px; + line-height: @font-size-16; .border-radius(2px); &.toast-success{ background: @color-bi-background-toast-success;