Commit f00a037cd4613797f5853dc0bd840db9c6ec6301

Authored by 梁灏
1 parent 4d545420

some Components's size add default

src/components/button/button-group.vue
... ... @@ -13,7 +13,7 @@
13 13 props: {
14 14 size: {
15 15 validator (value) {
16   - return oneOf(value, ['small', 'large']);
  16 + return oneOf(value, ['small', 'large', 'default']);
17 17 }
18 18 },
19 19 shape: {
... ...
src/components/date-picker/picker.vue
... ... @@ -178,7 +178,7 @@
178 178 },
179 179 size: {
180 180 validator (value) {
181   - return oneOf(value, ['small', 'large']);
  181 + return oneOf(value, ['small', 'large', 'default']);
182 182 }
183 183 },
184 184 placeholder: {
... ...
src/components/input-number/input-number.vue
... ... @@ -85,7 +85,7 @@
85 85 },
86 86 size: {
87 87 validator (value) {
88   - return oneOf(value, ['small', 'large']);
  88 + return oneOf(value, ['small', 'large', 'default']);
89 89 }
90 90 },
91 91 disabled: {
... ...
src/components/switch/switch.vue
... ... @@ -26,7 +26,7 @@
26 26 },
27 27 size: {
28 28 validator (value) {
29   - return oneOf(value, ['large', 'small']);
  29 + return oneOf(value, ['large', 'small', 'default']);
30 30 }
31 31 }
32 32 },
... ...