This commit is contained in:
2019-03-01 20:45:13 +00:00
parent 5d3d7a6ae6
commit 0b173ae3ad

View File

@@ -17,17 +17,18 @@ export default {
input: date => this.$emit("input", new Date(date).toISOString())
}
});
},
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>