Spin support global setting

This commit is contained in:
梁灏 2018-06-28 15:12:08 +08:00
parent 81b641eed7
commit cdeeeca4e5

View file

@ -20,7 +20,10 @@
props: { props: {
size: { size: {
validator (value) { validator (value) {
return oneOf(value, ['small', 'large']); return oneOf(value, ['small', 'large', 'default']);
},
default () {
return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
} }
}, },
fix: { fix: {