This commit is contained in:
2019-03-01 21:39:27 +00:00
parent 0c9d9026d9
commit ba112f1c6c

View File

@@ -1,5 +1,5 @@
<script>
/* eslint-disable */
/* Xeslint-disable */
export default {
props: {
value: {
@@ -8,7 +8,7 @@ export default {
}
},
render() {
var that=this;
var that = this;
return this.$createElement("v-date-picker", {
props: {
...this.$attrs,
@@ -17,52 +17,13 @@ export default {
on: {
...this.$listeners,
input: function(date) {
debugger;
that.$emit("input", new Date(date).toISOString());
//debugger;
//Put back the time portion from before
var combined = date + that.value.substr(10);
that.$emit("input", new Date(combined).toISOString());
}
//input: date => this.$emit("input", new Date(date).toISOString())
}
});
},
data: function() {
return {
ogdate: ""
};
}
// ,
// computed: {
// listeners() {
// return {
// // Pass all component listeners directly to input
// ...this.$listeners,
// // Override input listener to work with v-model
// input: event => this.$emit("input", event.target.value)
// };
// }
// }
};
</script>
// 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())
// }
// });
// }