This commit is contained in:
@@ -17,17 +17,18 @@ export default {
|
|||||||
input: date => this.$emit("input", new Date(date).toISOString())
|
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>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user