Commit c0db4e8b authored by baiyaaaaa's avatar baiyaaaaa

fix dynamic input type bug

parent 070a2804
...@@ -627,7 +627,7 @@ ...@@ -627,7 +627,7 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值 | | 参数 | 说明 | 类型 | 可选值 | 默认值 |
|------------- |---------------- |---------------- |---------------------- |-------- | |------------- |---------------- |---------------- |---------------------- |-------- |
| type | 同原生的 input 的 type 属性,另外提供 type="textarea" | string | — | — | | type | 类型 | string | text/textarea | text |
| value | 绑定值 | string, number | — | — | | value | 绑定值 | string, number | — | — |
| maxlength | 最大输入长度 | number | — | — | | maxlength | 最大输入长度 | number | — | — |
| minlength | 最小输入长度 | number | — | — | | minlength | 最小输入长度 | number | — | — |
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<input <input
class="el-date-editor__editor" class="el-date-editor__editor"
:readonly="readonly" :readonly="readonly"
:type="editorType" type="text"
:placeholder="placeholder" :placeholder="placeholder"
@focus="handleFocus" @focus="handleFocus"
@blur="handleBlur" @blur="handleBlur"
...@@ -274,10 +274,6 @@ export default { ...@@ -274,10 +274,6 @@ export default {
} }
this.$emit('input', value); this.$emit('input', value);
} }
},
editorType() {
return 'text';
} }
}, },
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<input <input
class="el-input__inner" class="el-input__inner"
v-model="currentValue" v-model="currentValue"
:type="type" type="text"
:name="name" :name="name"
:placeholder="placeholder" :placeholder="placeholder"
:disabled="disabled" :disabled="disabled"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment