Commit 604ae4d3a8e882a7ce518b375c29f4bcb4ef0702
1 parent
645d482f
AutoComplete support global setting
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
src/components/auto-complete/auto-complete.vue
| @@ -73,6 +73,9 @@ | @@ -73,6 +73,9 @@ | ||
| 73 | size: { | 73 | size: { |
| 74 | validator (value) { | 74 | validator (value) { |
| 75 | return oneOf(value, ['small', 'large', 'default']); | 75 | return oneOf(value, ['small', 'large', 'default']); |
| 76 | + }, | ||
| 77 | + default () { | ||
| 78 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | ||
| 76 | } | 79 | } |
| 77 | }, | 80 | }, |
| 78 | icon: { | 81 | icon: { |
| @@ -90,7 +93,9 @@ | @@ -90,7 +93,9 @@ | ||
| 90 | }, | 93 | }, |
| 91 | transfer: { | 94 | transfer: { |
| 92 | type: Boolean, | 95 | type: Boolean, |
| 93 | - default: false | 96 | + default () { |
| 97 | + return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer; | ||
| 98 | + } | ||
| 94 | }, | 99 | }, |
| 95 | name: { | 100 | name: { |
| 96 | type: String | 101 | type: String |