Commit 8546804290cf4573e8176fff291491c065d08e53

Authored by 梁灏
1 parent a7e1c2d6

InputNumber support global setting

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/components/input-number/input-number.vue
... ... @@ -89,6 +89,9 @@
89 89 size: {
90 90 validator (value) {
91 91 return oneOf(value, ['small', 'large', 'default']);
  92 + },
  93 + default () {
  94 + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
92 95 }
93 96 },
94 97 disabled: {
... ...