forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDeterminate.vue
More file actions
34 lines (25 loc) · 845 Bytes
/
Determinate.vue
File metadata and controls
34 lines (25 loc) · 845 Bytes
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
<template>
<div class="q-pa-md">
<q-btn size="sm" color="primary" @click="randomize" label="Change Model" />
<q-linear-progress :value="progress" class="q-mt-md" />
<q-linear-progress :value="progress" color="warning" class="q-mt-sm" />
<q-linear-progress :value="progress" color="secondary" class="q-mt-sm" />
<q-linear-progress :value="progress" rounded color="accent" class="q-mt-sm" />
<q-linear-progress :value="progress" rounded color="purple" track-color="orange" class="q-mt-sm" />
<q-linear-progress :value="progress" rounded color="negative" class="q-mt-sm" />
</div>
</template>
<script>
import { ref } from 'vue'
export default {
setup () {
const progress = ref(0.4)
return {
progress,
randomize () {
progress.value = Math.random()
}
}
}
}
</script>