2
No, it’s not possible, each event is handled separately, but there’s another syntax which handle the events with object syntax :
<div @="{click:someFunction, mouseover:someFunction}"></div>
- [Vuejs]-Is it possible to include Vue Admin (Bulma) into Laravel?
- [Vuejs]-Is there a way to define which object keys to use instead of "label" and "value" in the CoreUI's CSelect component for Vue?
2
No, each event should be specified one way or another.
You could bind them via an object if you want less bloat in your template.
psudo code:
<template>
<div v-on="handlers" />
</template>
<script>
...
data() {
return {
handlers: {
'click': func,
'mouseover': func,
...
}
}
}
...
</script>
Source:stackexchange.com