vuejs / devtools

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org/
MIT License
1.7k stars 122 forks source link

`event listeners` should consider camelCase emits #651

Open twisterniq opened 3 weeks ago

twisterniq commented 3 weeks ago

event listeners shows Not declared for a camelCase emit, this is not correct:

image

The code is:

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.