As the title, I want to add watcher and the same callback for all of the props, but I neet to code like this in sub-component:
<script>
export default {
props: {
a: String,
b: String,
c: String
},
watch: {
a (v) { this.handler(v) },
b (v) { this.handler(v) },
c (v) { this.handler(v) },
},
methods: {
handler (v) {
// code...
}
}
}
</script>
And do you know how to simplify this?