This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script>
|
<script>
|
||||||
/* eslint-disable */
|
/* Xeslint-disable */
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
@@ -8,7 +8,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
var that=this;
|
var that = this;
|
||||||
return this.$createElement("v-date-picker", {
|
return this.$createElement("v-date-picker", {
|
||||||
props: {
|
props: {
|
||||||
...this.$attrs,
|
...this.$attrs,
|
||||||
@@ -17,52 +17,13 @@ export default {
|
|||||||
on: {
|
on: {
|
||||||
...this.$listeners,
|
...this.$listeners,
|
||||||
input: function(date) {
|
input: function(date) {
|
||||||
debugger;
|
//debugger;
|
||||||
that.$emit("input", new Date(date).toISOString());
|
//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>
|
</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