需求:在一列后面,不只展示数据还想展示按钮,其实element支持这个功能
解决方式:
<el-table-column prop="userNum" label="用户数量" align="center" width="200px" >
<template slot-scope="scope">
{{scope.row.userNum}}
<i class="el-icon-edit" @click="studentShow=!studentShow"></i>
</template>
</el-table-column>
在此记录,防止忘记