Radio support global setting

This commit is contained in:
梁灏 2018-06-28 14:18:20 +08:00
parent d18a7ee861
commit 35f7a4ae12
2 changed files with 6 additions and 0 deletions

View file

@ -24,6 +24,9 @@
size: {
validator (value) {
return oneOf(value, ['small', 'large', 'default']);
},
default () {
return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
}
},
type: {

View file

@ -46,6 +46,9 @@
size: {
validator (value) {
return oneOf(value, ['small', 'large', 'default']);
},
default () {
return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
}
},
name: {