forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgressView.vue
executable file
·153 lines (151 loc) · 5.91 KB
/
ProgressView.vue
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<template lang="pug">
component-view(v-bind:doc="doc")
</template>
<script>
export default {
data () {
return {
doc: {
component: 'progress',
edit: 'ProgressView',
title: 'Progress',
desc: 'The <code>v-progress-circular</code> and <code>v-progress-linear</code> components are used to convey data visually to users. They can also represent an indeterminate amount, such as loading or processing. These components contains a slot that is centered within the component container.',
examples: [
{ header: 'Default', file: 'progress-circular/1', desc: 'By default, progress circular uses the applications secondary color.' },
{ header: 'Colored', file: 'progress-circular/2', desc: 'Alternate colors can be applied.' },
{ header: 'Indeterminate', file: 'progress-circular/3', desc: 'An indeterminate progress circular animates forever.' },
{ header: 'Size & Width', file: 'progress-circular/4', desc: 'The progress circular component can have an altered width and size.' },
{ header: 'Rotate', file: 'progress-circular/5', desc: 'The progress origin can be rotated.' },
{ header: 'Determinate', file: 'progress-linear/1', desc: 'The progress linear component can have a determinate state modified by v-model.' },
{ header: 'Indeterminate', file: 'progress-linear/2', desc: 'Just as with the progress circular component, progress linear has an indeterminate state.' },
{ header: 'Buffer', file: 'progress-linear/3', desc: 'A buffer state represents two values simultaneously. The primary value is controled by the model, whereas the buffer is controlled by the <code>buffer-value</code> prop.'},
{ header: 'Query Indeterminate and Determinate', file: 'progress-linear/4', desc: 'To query state is controlled by the truthiness of indeterminate with the query prop set to true.'},
{ header: 'Custom height and contextual colors', file: 'progress-linear/5', desc: 'A custom height or contextual color can be applied to a progress bar. The bars primary color is your applications primary color.'},
{ header: 'Custom colors', file: 'progress-linear/6', desc: 'You can also set the color using the props <code>color-front</code> and <code>color-back</code>.'},
],
props: {
'v-progress-circular': {
params: [
[
'fill',
'String',
"[indeterminate ? 'none' : 'transparent']",
'Sets the fill color of the circle'
],
[
'indeterminate',
'Boolean',
'False',
'Never stops rotating. Use when loading progress is unknown.'
],
[
'rotate',
'Number',
'0',
'Rotates the circle start point in deg'
],
[
'size',
'Number',
'32',
'Sets the diameter of the circle in pixels'
],
[
'width',
'Number',
'4',
'Sets the stroke of the circle in pixels'
]
],
model: {
types: ['Number'],
default: '0',
description: 'The percentage value for current progress'
}
},
'v-progress-linear': {
params: [
[
'buffer',
'Boolean',
'False',
'Designates whether the buffer bar is shown'
],
[
'buffer-value',
'Number',
'None',
'The percentage value for the buffer'
],
[
'height',
'number',
'7',
'The height of the progress bar'
],
[
'indeterminate',
'Boolean',
'False',
'Sets the indeterminate state of the component. Use when loading progress is unknown'
],
[
'active',
'Boolean',
'True',
'When disabled, the component will shrink up'
],
[
'query',
'Boolean',
'False',
'Sets the query state of the component'
],
[
'secondary',
'Boolean',
'False',
'Sets the progress context to "Secondary"'
],
[
'success',
'Boolean',
'False',
'Sets the progress context to "Success"'
],
[
'info',
'Boolean',
'False',
'Sets the progress context to "Info"'
],
[
'warning',
'Boolean',
'False',
'Sets the progress context to "Warning"'
],
[
'error',
'Boolean',
'False',
'Sets the progress context to "Error"'
],
],
model: {
types: ['Number'],
default: '0',
description: 'The percentage value for current progress'
}
}
},
slots: {
'v-progress-circular': {
default: true
}
}
}
}
}
}
</script>