ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

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

vscode中element-plus组件无属性提示
  1. 确保安装了Vue(Official)插件
    image

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

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

image

返回列表