vue中的element没有用;
<template>
<div id="app">
<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>
</div>
</template>
用这一段测试:结果是:
没有效果,于是我再main.js里添加
import 'element-ui/lib/theme-chalk/index.css'
效果出啦!一起加油!