diff --git a/src/components/radio/radio-group.vue b/src/components/radio/radio-group.vue index 59d15355..457b43d7 100644 --- a/src/components/radio/radio-group.vue +++ b/src/components/radio/radio-group.vue @@ -24,6 +24,9 @@ size: { validator (value) { return oneOf(value, ['small', 'large', 'default']); + }, + default () { + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, type: { diff --git a/src/components/radio/radio.vue b/src/components/radio/radio.vue index f50906b9..8aa48d7c 100644 --- a/src/components/radio/radio.vue +++ b/src/components/radio/radio.vue @@ -46,6 +46,9 @@ size: { validator (value) { return oneOf(value, ['small', 'large', 'default']); + }, + default () { + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, name: {