Commit dd037d90d3979d9c45651d40f108d73f9221a526

Authored by Aresn
Committed by GitHub
2 parents 2c75c881 9968ddea

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,6 +7,7 @@
7 <i class="ivu-icon ivu-icon-load-c ivu-load-loop" :class="[prefixCls + '-icon', prefixCls + '-icon-validate']" v-if="!icon"></i> 7 <i class="ivu-icon ivu-icon-load-c ivu-load-loop" :class="[prefixCls + '-icon', prefixCls + '-icon-validate']" v-if="!icon"></i>
8 </transition> 8 </transition>
9 <input 9 <input
  10 + :autocomplete="autocomplete"
10 ref="input" 11 ref="input"
11 :type="type" 12 :type="type"
12 :class="inputClasses" 13 :class="inputClasses"
@@ -29,6 +30,7 @@ @@ -29,6 +30,7 @@
29 <div :class="[prefixCls + '-group-append']" v-if="append" v-show="slotReady"><slot name="append"></slot></div> 30 <div :class="[prefixCls + '-group-append']" v-if="append" v-show="slotReady"><slot name="append"></slot></div>
30 </template> 31 </template>
31 <textarea 32 <textarea
  33 + :autocomplete="autocomplete"
32 v-else 34 v-else
33 ref="textarea" 35 ref="textarea"
34 :class="textareaClasses" 36 :class="textareaClasses"
@@ -111,6 +113,10 @@ @@ -111,6 +113,10 @@
111 autofocus: { 113 autofocus: {
112 type: Boolean, 114 type: Boolean,
113 default: false 115 default: false
  116 + },
  117 + autocomplete: {
  118 + type: String,
  119 + default: 'off'
114 } 120 }
115 }, 121 },
116 data () { 122 data () {