Merge pull request #360 from baiyaaaaa/feat-input

fix dynamic input type bug
pull/362/head
杨奕 2016-10-12 17:37:18 +08:00 committed by GitHub
commit 457cfe4af0
4 changed files with 4 additions and 8 deletions

View File

@ -627,7 +627,7 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|------------- |---------------- |---------------- |---------------------- |-------- |
| type | 同原生的 input 的 type 属性,另外提供 type="textarea" | string | — | — |
| type | 类型 | string | text/textarea | text |
| value | 绑定值 | string, number | — | — |
| maxlength | 最大输入长度 | number | — | — |
| minlength | 最小输入长度 | number | — | — |

View File

@ -71,7 +71,7 @@
"theaterjs": "^3.0.0",
"uppercamelcase": "^1.1.0",
"url-loader": "^0.5.7",
"vue": "^2.0.1",
"vue": "^2.0.2",
"vue-loader": "^9.5.1",
"vue-markdown-loader": "^0.5.1",
"vue-popup": "^0.2.7",

View File

@ -11,7 +11,7 @@
<input
class="el-date-editor__editor"
:readonly="readonly"
:type="editorType"
type="text"
:placeholder="placeholder"
@focus="handleFocus"
@blur="handleBlur"
@ -274,10 +274,6 @@ export default {
}
this.$emit('input', value);
}
},
editorType() {
return 'text';
}
},

View File

@ -15,7 +15,7 @@
<input
class="el-input__inner"
v-model="currentValue"
:type="type"
type="text"
:name="name"
:placeholder="placeholder"
:disabled="disabled"