vscode中element-plus组件无属性提示

  1. 确保安装了Vue(Official)插件
    image

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

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

image

posted @ 2025-09-24 14:13  李嘉图呀  阅读(46)  评论(0)    收藏  举报