vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.75k stars 385 forks source link

在 SFC 模板中设置属性时能自动生成对应属性 #4615

Open yamiwamiyu opened 1 month ago

yamiwamiyu commented 1 month ago

What problem does this feature solve?

在使用 VSCode 开发 SFC 模板时,使用某个组件往往按 Ctrl + Space 可以提示有哪些 props 并提示 props 的对应类型。

例如 <el-dialog :before-close="handleClose"> ,before-close 属性的类型为 (done: () => void) => void

写完模板后在 Githubissues.

  • Githubissues is a development platform for aggregating issues.