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

added input name attribute to v-bind

This commit is contained in:
akshay
2018-04-26 14:30:33 +05:30
parent 1a10440d7c
commit 8a7226aea4
+5 -1
View File
@@ -3,7 +3,7 @@
:class="{'disabled': disabled}" :class="{'disabled': disabled}"
:style="{'width': computedWidth,'min-width':range ? (type === 'datetime' ? '320px' : '210px') : '140px'}" :style="{'width': computedWidth,'min-width':range ? (type === 'datetime' ? '320px' : '210px') : '140px'}"
v-clickoutside="closePopup"> v-clickoutside="closePopup">
<input name="date" <input :name="inputName"
:disabled="disabled" :disabled="disabled"
:class="inputClass" :class="inputClass"
:value="text" :value="text"
@@ -151,6 +151,10 @@ export default {
rangeSeparator: { rangeSeparator: {
type: String, type: String,
default: '~' default: '~'
},
inputName:{
type: String,
default: 'date'
} }
}, },
data () { data () {