1.安装  npm i element-ui -S

2.main.js中

import Vue from 'vue'
import ElementUI from 'element-ui'                  // 1
import 'element-ui/lib/theme-chalk/index.css'       // 2

Vue.use(vuex)
Vue.config.productionTip = false
Vue.use(ElementUI)                                  // 3

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})

3.使用

参照官网 组件  http://element-cn.eleme.io/#/zh-CN/component/layout

<template>  //按钮
 <el-row> 
  <el-button>默认按钮</el-button> 
  <el-button type="primary">主要按钮</el-button> 
  <el-button type="success">成功按钮</el-button> 
  <el-button type="info">信息按钮</el-button> 
  <el-button type="warning">警告按钮</el-button> 
  <el-button type="danger">危险按钮</el-button> 
 </el-row>
</template>

更多推荐

element-ui 入门