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 160 }
161 161 },
162 162 ready () {
163   - if (this.type === 'text') {
  163 + if (this.type !== 'textarea') {
164 164 this.prepend = this.$els.prepend.innerHTML !== '';
165 165 this.append = this.$els.append.innerHTML !== '';
166 166 } else {
... ...
test/routers/input.vue
... ... @@ -15,7 +15,7 @@
15 15 <br>
16 16 <br>
17 17 <div style="width: 400px">
18   - <i-input :value.sync="v">
  18 + <i-input :value.sync="v" type="password">
19 19 <span slot="prepend">http://</span>
20 20 <span slot="append">
21 21 <i-button icon="ios-search"></i-button>
... ...