mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 01:00:35 +03:00
added input name attribute to v-bind
This commit is contained in:
@@ -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 () {
|
||||||
|
|||||||
Reference in New Issue
Block a user