Vue项目中Element UI的使用
1.Element UI下载及项目中的配置:
(1).安装
npm install element-ui --save
(2).项目中引入,及配置。
在 项目的入口文件 main.js 中
import ElementUI from 'element-ui'
//特别注意的是样式需要单独引入
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);//注册
(3).项目中使用:参看官网:http://element.eleme.io/#/zh-CN