Commit d3eee3f46487612dfc87e1a76cda43568f51ea19

Authored by 梁灏
1 parent db8d1f7d

fixed #123

fixed #123
Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
src/components/input/input.vue
@@ -160,7 +160,7 @@ @@ -160,7 +160,7 @@
160 } 160 }
161 }, 161 },
162 ready () { 162 ready () {
163 - if (this.type === 'text') { 163 + if (this.type !== 'textarea') {
164 this.prepend = this.$els.prepend.innerHTML !== ''; 164 this.prepend = this.$els.prepend.innerHTML !== '';
165 this.append = this.$els.append.innerHTML !== ''; 165 this.append = this.$els.append.innerHTML !== '';
166 } else { 166 } else {
test/routers/input.vue
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 <br> 15 <br>
16 <br> 16 <br>
17 <div style="width: 400px"> 17 <div style="width: 400px">
18 - <i-input :value.sync="v"> 18 + <i-input :value.sync="v" type="password">
19 <span slot="prepend">http://</span> 19 <span slot="prepend">http://</span>
20 <span slot="append"> 20 <span slot="append">
21 <i-button icon="ios-search"></i-button> 21 <i-button icon="ios-search"></i-button>