We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2d745c commit 7435fa0Copy full SHA for 7435fa0
src/components/VueContentLoading.js
@@ -10,6 +10,9 @@ export default {
10
type: {
11
default: 'facebook',
12
type: String,
13
+ validator (type) {
14
+ return true; // validate
15
+ },
16
},
17
speed: {
18
default: 2,
@@ -26,11 +29,17 @@ export default {
26
29
custom: Object,
27
30
primary: {
28
31
- default: '#f00',
32
+ default: '#f0f0f0',
33
+ validator (color) {
34
+ return /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(color);
35
36
37
secondary: {
38
- default: '#0f0',
39
+ default: '#e0e0e0',
40
41
42
43
44
45
@@ -76,4 +85,4 @@ export default {
76
85
export {
77
86
Rect,
78
87
Circle,
79
-};
88
+};
0 commit comments