feat(wip): start working on seeing if emitting events between component and parent works
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
This commit is contained in:
parent
fef618795d
commit
704de034b7
2 changed files with 12 additions and 0 deletions
|
@ -75,6 +75,11 @@ onMounted(async () => {
|
||||||
// showHover.value = !showHover.value;
|
// showHover.value = !showHover.value;
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
const nuxtApp = useNuxtApp();
|
||||||
|
function emitId() {
|
||||||
|
// nuxtApp.callHook()
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|
7
types/hooks.ts
Normal file
7
types/hooks.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import type { RuntimeNuxtHooks } from 'nuxt/schema';
|
||||||
|
|
||||||
|
declare module "nuxt/schema" {
|
||||||
|
interface RuntimeNuxtHooks {
|
||||||
|
"app:message:right-clicked": (payload: { messageId: string }) => void
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue