Open twisterniq opened 3 weeks ago
event listeners shows Not declared for a camelCase emit, this is not correct:
event listeners
Not declared
The code is:
App.vue:
App.vue
<template> <Child @input-text="console.log('inputText')" /> </template> <script setup> import Child from './Child.vue'; </script>
Child.vue
<template> <input @input="emit('inputText')" /> </template> <script setup> const emit = defineEmits([ 'inputText', ]) </script>
Tested using Chrome extension Vue.js devtools, version 7.5.6.
Vue.js devtools
7.5.6
event listeners
showsNot declared
for a camelCase emit, this is not correct:The code is:
App.vue
:Child.vue
Tested using Chrome extension
Vue.js devtools
, version7.5.6
.