Unable to resolve subcomponents of vue component
Hello, I am very happy to use the phpstorm editor. I am currently experiencing a problem and I have not found a good solution, so I decided to give you feedback.
When I used phpsotrm to write a .vue file, I encountered that phpstorm was unable to identify the subordinate component name of the component. This made me feel very distressed.
For example, when I use the a-descriptions component of ant-design-vue, <a-descriptions></a-descriptions> can automatically prompt, but <a-descriptions-item></a-descriptions-item> But it prompts "unknown html tag".
There are many similar situations. For example, <a-select></a-select> can prompt, but <a-select-options></a-select-options> cannot.
I have provided a small project to demonstrate my problem, I hope it can help you.
Hope to fix it, thank you!
请先登录再写评论。
The IDE doesn't understand the way components are exposed in library files, thus the issue. Vetur (VSCode extension for Vue.js) does the worse job here, BTW - none of antd components are recognized
To improve code completion for different Vue.js component libraries, we are using a special format of metadata, called
web-types. web-types describe the library's components and their directives. Would be very helpful if ant-design-vue developers provided description of their components in the web-types format and include it in package distribution.