omiu v0.0.13

This commit is contained in:
dntzhang 2019-03-25 16:26:05 +08:00
parent 44bf1c70c1
commit 29b07d45f8
3 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "omiu",
"version": "0.0.12",
"version": "0.0.13",
"description": "Omi ui.",
"main": "dist/omiu.js",
"minified:main": "dist/omiu.min.js",

View File

@ -1,5 +1,5 @@
/*!
* omiu v0.0.12 By dntzhang
* omiu v0.0.13 By dntzhang
* Github: https://github.com/AlloyTeam/omi
* MIT Licensed.
*/
@ -4025,6 +4025,9 @@ var toast = {},
dom = void 0;
toast.showLoading = function (wording) {
if (dom) {
document.body.removeChild(dom);
}
dom = (0, _omi.render)(Omi.h(
'o-toast',
{
@ -4035,7 +4038,10 @@ toast.showLoading = function (wording) {
};
toast.hideLoading = function () {
document.body.removeChild(dom);
if (dom) {
document.body.removeChild(dom);
dom = null;
}
};
exports['default'] = toast;

File diff suppressed because one or more lines are too long