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

Merge pull request #86 from akshay-kh/add-name-attribute-to-v-bind

added input name attribute to v-bind
This commit is contained in:
xiemengxiong
2018-04-26 18:36:09 +08:00
committed by GitHub
+5 -1
View File
@@ -3,7 +3,7 @@
:class="{'disabled': disabled}"
:style="{'width': computedWidth,'min-width':range ? (type === 'datetime' ? '320px' : '210px') : '140px'}"
v-clickoutside="closePopup">
<input name="date"
<input :name="inputName"
:disabled="disabled"
:class="inputClass"
:value="text"
@@ -151,6 +151,10 @@ export default {
rangeSeparator: {
type: String,
default: '~'
},
inputName:{
type: String,
default: 'date'
}
},
data () {