vue 3 event handlers slots code example
Example 1: vuejs slots events
Check the last comment from here:
https://github.com/vuejs/vue/issues/4332
Example 2: vue slot events
Emit event in slot: this.$parent.$emit(...)
Listen in wrapper/parent: this.$on(...)