DemoProgressCircularRotate.vue
1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<script setup>
const interval = ref()
const progressValue = ref(0)
onMounted(() => {
interval.value = setInterval(() => {
if (progressValue.value === 100)
return progressValue.value = 0
progressValue.value += 10
}, 1000)
})
onBeforeUnmount(() => {
clearInterval(interval.value)
})
</script>
<template>
<div class="demo-space-x">
<VProgressCircular
:rotate="360"
:size="70"
:width="6"
:model-value="progressValue"
color="primary"
>
{{ progressValue }}
</VProgressCircular>
<VProgressCircular
:rotate="90"
:size="70"
:width="6"
:model-value="progressValue"
color="primary"
>
{{ progressValue }}
</VProgressCircular>
<VProgressCircular
:rotate="170"
:size="70"
:width="6"
:model-value="progressValue"
color="primary"
>
{{ progressValue }}
</VProgressCircular>
<VProgressCircular
:rotate="-90"
:size="70"
:width="6"
:model-value="progressValue"
color="primary"
>
{{ progressValue }}
</VProgressCircular>
</div>
</template>