Commit 35f7a4ae12924def054e199fd77e524b7896f0f3

Authored by 梁灏
1 parent d18a7ee8

Radio support global setting

src/components/radio/radio-group.vue
... ... @@ -24,6 +24,9 @@
24 24 size: {
25 25 validator (value) {
26 26 return oneOf(value, ['small', 'large', 'default']);
  27 + },
  28 + default () {
  29 + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
27 30 }
28 31 },
29 32 type: {
... ...
src/components/radio/radio.vue
... ... @@ -46,6 +46,9 @@
46 46 size: {
47 47 validator (value) {
48 48 return oneOf(value, ['small', 'large', 'default']);
  49 + },
  50 + default () {
  51 + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
49 52 }
50 53 },
51 54 name: {
... ...