Commit dd037d90d3979d9c45651d40f108d73f9221a526
Committed by
GitHub
Merge pull request #1414 from zerooverture/2.0
Input increase autocomplete
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/components/input/input.vue
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | <i class="ivu-icon ivu-icon-load-c ivu-load-loop" :class="[prefixCls + '-icon', prefixCls + '-icon-validate']" v-if="!icon"></i> |
8 | 8 | </transition> |
9 | 9 | <input |
10 | + :autocomplete="autocomplete" | |
10 | 11 | ref="input" |
11 | 12 | :type="type" |
12 | 13 | :class="inputClasses" |
... | ... | @@ -29,6 +30,7 @@ |
29 | 30 | <div :class="[prefixCls + '-group-append']" v-if="append" v-show="slotReady"><slot name="append"></slot></div> |
30 | 31 | </template> |
31 | 32 | <textarea |
33 | + :autocomplete="autocomplete" | |
32 | 34 | v-else |
33 | 35 | ref="textarea" |
34 | 36 | :class="textareaClasses" |
... | ... | @@ -111,6 +113,10 @@ |
111 | 113 | autofocus: { |
112 | 114 | type: Boolean, |
113 | 115 | default: false |
116 | + }, | |
117 | + autocomplete: { | |
118 | + type: String, | |
119 | + default: 'off' | |
114 | 120 | } |
115 | 121 | }, |
116 | 122 | data () { | ... | ... |