mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-10 07:32:26 +03:00
refactor: inputAttr can override input value
This commit is contained in:
+1
-2
@@ -11,11 +11,10 @@
|
||||
<slot name="input">
|
||||
<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"
|
||||
:disabled="disabled"
|
||||
:readonly="!editable"
|
||||
:value="text"
|
||||
:placeholder="placeholder"
|
||||
@keydown="handleInputKeydown"
|
||||
@focus="handleInputFocus"
|
||||
|
||||
Reference in New Issue
Block a user