Vue3 需要使用element-plus Vue-Cli@4.x 安装element-plus插件
Vue2 使用element-ui Vue-Cli@3.x
Vue3 需要使用element-plus Vue-Cli@4.x 安装element-plus插件
创建项目,添加插件
vue create my-app
cd my-app
vue add element-plus
现在官方推荐通过 vite 创建项目
npm init vite-app <project-name>
$ cd <project-name>
内容会不断更新,欢迎批评指正。

浙公网安备 33010602011771号