Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加了一个加载指示器 #217

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 51 additions & 31 deletions dist/css/mui.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/mui.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/js/mui.js
Original file line number Diff line number Diff line change
Expand Up @@ -7166,6 +7166,7 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
popupStack[popupStack.length - 1]['show'](animate);
} else {
backdrop.classList.remove(CLASS_ACTIVE);
document.body.removeChild(backdrop);
}
}
}
Expand Down Expand Up @@ -7271,6 +7272,12 @@ Function.prototype.bind = Function.prototype.bind || function(to) {
}
};

var createPreloader = function (title) {
return createPopup(createInner('<div class="mui-preloader"></div>', title || '加载中'));
};

$.showPreloader = createPreloader;
$.hidePreloader = closePopup;
$.closePopup = closePopup;
$.closePopups = closePopups;
$.alert = createAlert;
Expand Down
8 changes: 4 additions & 4 deletions dist/js/mui.min.js

Large diffs are not rendered by default.

Loading