<el-table-column label="操作" width="50" align="center"><!-- 添加自定义列头图标的列 -->
<template slot="header"> <!-- 自定义列头模板 -->
<el-button type="success" icon="el-icon-plus" size="mini" circle @click="addClick"></el-button>
</template>
<template slot-scope="scope"><!-- 列内容 -->
<el-button type="danger" icon="el-icon-delete" size="mini" circle @click="delClick(scope.row)"></el-button>
</template>
</el-table-column>
自定义el-table的列头为icon
最新推荐文章于 2024-07-11 11:14:36 发布