This commit is contained in:
2019-03-01 21:25:58 +00:00
parent 0b173ae3ad
commit 0c9d9026d9
2 changed files with 25 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
<script>
/* eslint-disable */
export default {
props: {
value: {
@@ -7,6 +8,7 @@ export default {
}
},
render() {
var that=this;
return this.$createElement("v-date-picker", {
props: {
...this.$attrs,
@@ -14,21 +16,30 @@ export default {
},
on: {
...this.$listeners,
input: date => this.$emit("input", new Date(date).toISOString())
input: function(date) {
debugger;
that.$emit("input", new Date(date).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)
// };
// }
// }
// ,
// 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>