This commit is contained in:
@@ -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())
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user