Missing defineComponent() in components breaks VS Code Intellisense support #841
Labels
Project::Bug
Something isn't working
Quality::TypeScript Related
this issue is related to type definition
I'm currently migrating codebase with VS Code with Volar, which Evan suggested his team to use instead of Vetur "for now" (at least until Vetur is fully up-to-date with Vue 3).
While developing, I found that Intellisense inside
<template>
section doesn't work on some of theelement-plus
' components. After inspecting the source code, these components seem to directly export plain objects instead of wrapping withdefineComponent()
first before returning. For example,ElMenu
code usesdefineComponent()
, whileElSubmenu
andElMenuItem
return plain objects, the Intellisense is broken on the latter two:Searching through the codebase, right now there seems to be 10 components that don't use
defineComponent()
yet:It'd be great if you can fix these components to be compatible with VS Code. Thank you.
The text was updated successfully, but these errors were encountered: