Browse Source

Merge pull request #261 in FUI/fineui from ~WINDY/fui:master to master

* commit 'e66b8aa2d9d959a7c0ade5cd113f3c75501d6ec4':
  toast去动画
es6
guy 7 years ago
parent
commit
2ba4d7d656
  1. 6
      dist/base.js
  2. 6
      src/base/foundation/message.js

6
dist/base.js vendored

@ -14782,13 +14782,11 @@ $.extend(BI, {
}]
});
toast.element.css({"margin-left": -1 * toast.element.outerWidth() / 2});
toast.element.slideDown(500, function () {
toast.element.show();
autoClose && BI.delay(function () {
toast.element.slideUp(500, function () {
toast.element.hide();
toast.destroy();
});
}, 5000);
});
},
_show: function (hasCancel, title, message, callback) {
$mask = $("<div class=\"bi-z-index-mask\">").css({

6
src/base/foundation/message.js

@ -39,13 +39,11 @@ $.extend(BI, {
}]
});
toast.element.css({"margin-left": -1 * toast.element.outerWidth() / 2});
toast.element.slideDown(500, function () {
toast.element.show();
autoClose && BI.delay(function () {
toast.element.slideUp(500, function () {
toast.element.hide();
toast.destroy();
});
}, 5000);
});
},
_show: function (hasCancel, title, message, callback) {
$mask = $("<div class=\"bi-z-index-mask\">").css({

Loading…
Cancel
Save