Pages updated v3.21.0

This commit is contained in:
Bahadır Sofuoğlu 2022-12-08 15:26:57 +03:00
parent defd6ff6e2
commit edc9695de0
246 changed files with 33769 additions and 28188 deletions

View file

@ -36,13 +36,21 @@ export default {
};
},
interval: null,
mounted() {
this.startProgress();
},
beforeUnmount() {
this.endProgress();
},
methods: {
startProgress() {
this.interval = setInterval(() => {
let newValue = this.value1 + Math.floor(Math.random() * 10) + 1;
if (newValue >= 100) {
newValue = 100;
}
this.value1 = newValue;
}, 2000);
},
@ -51,12 +59,6 @@ export default {
this.interval = null;
}
},
mounted() {
this.startProgress();
},
beforeUnmount() {
this.endProgress();
},
components: {
ProgressBarDoc: ProgressBarDoc
}