This commit is contained in:
2019-03-01 20:09:52 +00:00
parent b19001041f
commit 027de3694f
3 changed files with 56 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ import errorHandler from "./api/errorhandler";
import NProgress from "nprogress";
import "nprogress/nprogress.css";
import dayjs from "dayjs";
import gzdatepicker from "./components/gzdatepicker.vue";
/////////////////////////////////////////////////////////////////
// FORM VALIDATION
@@ -101,6 +102,52 @@ Vue.filter("boolastext", function(value) {
return value ? "Yes" : "Nope";
});
//COMPONENT DATE TEST
//
Vue.component("gz-date-picker", gzdatepicker);
// Vue.component("GzDatePicker", {
// props: {
// value: Date
// },
// render() {
// return this.$createElement("v-date-picker", {
// props: {
// ...this.$attrs,
// value: this.value ? this.value.toISOString().substr(0, 10) : null
// },
// on: {
// ...this.$listeners,
// input: date => this.$emit("input", new Date(date))
// }
// });
// }
// });
// Vue.component("AltGzDatePicker", {
// props: {
// value: String
// },
// data: function() {
// return {
// ogdate: ""
// };
// },
// render() {
// return this.$createElement("v-date-picker", {
// props: {
// ...this.$attrs,
// value: this.value ? this.value.substr(0, 10) : null
// },
// on: {
// ...this.$listeners,
// input: date => this.$emit("input", new Date(date).toISOString())
// }
// });
// }
// });
/////////////////////////////////////////////////////////////////
// INSTANTIATE
//