Let caller use string data for <tailbone-datepicker>
don't require a Date object, since callers thus far have not expected that
This commit is contained in:
parent
2eaeb1891d
commit
e7a44d9979
|
@ -321,7 +321,7 @@
|
||||||
template: '#tailbone-datepicker-template',
|
template: '#tailbone-datepicker-template',
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
modelValue: Date,
|
modelValue: [Date, String],
|
||||||
disabled: Boolean,
|
disabled: Boolean,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -333,9 +333,7 @@
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
modelValue(to, from) {
|
modelValue(to, from) {
|
||||||
if (this.orugaValue != to) {
|
this.orugaValue = this.parseDate(to)
|
||||||
this.orugaValue = to
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue