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