|
|
@@ -87,6 +87,9 @@ jQuery.bootstrapLoading = {
|
|
|
}
|
|
|
|
|
|
const SCComponent = (() => {
|
|
|
+ /*
|
|
|
+ * 假滚动条,0 - 80% 快, 80% - 95%很慢,95%开始停住,直到调用end方法
|
|
|
+ * */
|
|
|
const InitProgressBar = (() => {
|
|
|
function ProgressBar($modal, $title, $content, $bar) {
|
|
|
this.$modal = $modal;
|
|
|
@@ -94,6 +97,7 @@ const SCComponent = (() => {
|
|
|
this.$content = $content;
|
|
|
this.$bar = $bar;
|
|
|
}
|
|
|
+ //显示滚动条,自动处理滚动条速度
|
|
|
ProgressBar.prototype.start = function (title, content) {
|
|
|
this.$title.text(title);
|
|
|
this.$content.text(content);
|
|
|
@@ -118,6 +122,7 @@ const SCComponent = (() => {
|
|
|
}
|
|
|
}, 500);
|
|
|
};
|
|
|
+ //结束显示滚动条,滚动条从当前位置滚到100% 消失
|
|
|
ProgressBar.prototype.end = function () {
|
|
|
if (this.outer) {
|
|
|
clearInterval(this.outer);
|