This commit is contained in:
2019-03-28 19:27:41 +00:00
parent f3925bfd64
commit f07a6d4b0d

View File

@@ -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: {