This commit is contained in:
@@ -56,12 +56,14 @@
|
|||||||
export default {
|
export default {
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
//check pre-requisites exist just in case
|
//check pre-requisites exist just in case
|
||||||
|
if (this.$gzdevmode()) {
|
||||||
if (!this.$dayjs) {
|
if (!this.$dayjs) {
|
||||||
throw "GzDateAndTimePicker: the DayJS library is required and missing";
|
throw "GzDateAndTimePicker: the DayJS library is required and missing";
|
||||||
}
|
}
|
||||||
if (!this.$gzlocale) {
|
if (!this.$gzlocale) {
|
||||||
throw "GzDateAndTimePicker: $gzlocale is required and missing";
|
throw "GzDateAndTimePicker: $gzlocale is required and missing";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data: () => ({ date: null, dlgdate: false, dlgtime: false }),
|
data: () => ({ date: null, dlgdate: false, dlgtime: false }),
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
Reference in New Issue
Block a user