2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-23 17:40:35 +03:00

refactor: inputAttr can override input value

This commit is contained in:
mengxiong10
2019-11-15 18:04:10 +08:00
parent ca2d41e850
commit 763ce8dbb1
+1 -2
View File
@@ -11,11 +11,10 @@
<slot name="input"> <slot name="input">
<input <input
ref="input" ref="input"
v-bind="{ name: 'date', type: 'text', autocomplete: 'off', ...inputAttr }" v-bind="{ name: 'date', type: 'text', autocomplete: 'off', value: text, ...inputAttr }"
:class="inputClass" :class="inputClass"
:disabled="disabled" :disabled="disabled"
:readonly="!editable" :readonly="!editable"
:value="text"
:placeholder="placeholder" :placeholder="placeholder"
@keydown="handleInputKeydown" @keydown="handleInputKeydown"
@focus="handleInputFocus" @focus="handleInputFocus"