Commit 22111588976de090bec759ff53d68323bf223255

Authored by 梁灏
1 parent 2968067e

Switch support global setting

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/components/switch/switch.vue
... ... @@ -41,6 +41,9 @@
41 41 size: {
42 42 validator (value) {
43 43 return oneOf(value, ['large', 'small', 'default']);
  44 + },
  45 + default () {
  46 + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
44 47 }
45 48 },
46 49 name: {
... ...