mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Pages updated v3.21.0
This commit is contained in:
parent
defd6ff6e2
commit
edc9695de0
246 changed files with 33769 additions and 28188 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue