创建vue-cli项目,加载elementUI组件

  • 聚客宝
  • 2021-08-07 11:36:16



vue-cli-plugin-element

Element plugin for @vue/cli 3.0.


Install

First you need to install @vue/cli globally (follow the instructions here).


Then create a project and add the Element plugin:


vue create my-app

cd my-app

vue add element //添加element组件的方法,不需要install,使用add来安装


You'll be asked some questions regarding how Element is configured in your project. After that, you're good to go.