Commit 35f7a4ae12924def054e199fd77e524b7896f0f3

Authored by 梁灏
1 parent d18a7ee8

Radio support global setting

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