VSCode中Element-plus组件无属性提示解决

99 阅读1分钟
  1. 确保安装了Vue(Official)插件 image

  2. 在项目根路径下的tsconfig.json中增加以下配置:

compilerOptions:{
  "types": ["element-plus/global"],
}
  1. 重启编辑器即可 image

image