Browse Source

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

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

* commit 'c74e9f6fb79c43d09a26eb5735a9b25ce1d67fc9':
  BI-96759 支持自定义text
es6
guy 3 years ago
parent
commit
2264ecbc6f
  1. 4
      src/base/single/tip/tip.toast.js
  2. 1
      src/less/base/single/tip/tip.toast.less

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: {
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
}];

1
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;

Loading…
Cancel
Save