webpack中引用Element-ui

1.下载element-ui

npm i element-ui --production

2.在main.js中引用

import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(Element)

3.用element-ui

<el-breadcrumb separator-class="el-icon-arrow-right">
  <el-breadcrumb-item :to="{ path: '/' }">当前位置:产品工厂</el-breadcrumb-item>
  <el-breadcrumb-item>保单模型基础维护</el-breadcrumb-item>
  <el-breadcrumb-item>模板配置</el-breadcrumb-item>
</el-breadcrumb>

参考:http://element.eleme.io/#/zh-CN/component/breadcrumb

posted @ 2018-02-27 17:00  海螺呜呜  阅读(400)  评论(0编辑  收藏  举报