This commit is contained in:
2019-03-04 19:03:04 +00:00
parent 168e51dacc
commit 175a442a3e
5 changed files with 60 additions and 89 deletions

View File

@@ -12,6 +12,7 @@ import NProgress from "nprogress";
import "nprogress/nprogress.css";
import dayjs from "dayjs";
import gzdatepicker from "./components/gzdatepicker.vue";
import gztimepicker from "./components/gztimepicker.vue";
/////////////////////////////////////////////////////////////////
// FORM VALIDATION
@@ -102,51 +103,11 @@ Vue.filter("boolastext", function(value) {
return value ? "Yes" : "Nope";
});
//COMPONENT DATE TEST
/////////////////////////////////////////////////////////////
//GZ COMPONENTS
//
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())
// }
// });
// }
// });
Vue.component("gz-time-picker", gztimepicker);
/////////////////////////////////////////////////////////////////
// INSTANTIATE