Commit 604ae4d3a8e882a7ce518b375c29f4bcb4ef0702

Authored by 梁灏
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 73 size: {
74 74 validator (value) {
75 75 return oneOf(value, ['small', 'large', 'default']);
  76 + },
  77 + default () {
  78 + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size;
76 79 }
77 80 },
78 81 icon: {
... ... @@ -90,7 +93,9 @@
90 93 },
91 94 transfer: {
92 95 type: Boolean,
93   - default: false
  96 + default () {
  97 + return this.$IVIEW.transfer === '' ? false : this.$IVIEW.transfer;
  98 + }
94 99 },
95 100 name: {
96 101 type: String
... ...