1.安裝
npm i element-ui -s
2.引入ui組件 引入css文件 在vue上使用下
閱讀文檔快速上手部分
在main.js部分引入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
3.引入按鈕組件進(jìn)行測(cè)試
<el-row>
<el-button>默認(rèn)按鈕</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">危險(xiǎn)按鈕</el-button>
</el-row>
// 能顯示組件 就是安裝引入成功