vue 操作列的自定义
<el-table-column label="操作"> <template slot-scope="scope">
// 用到了 el-tooltip 鼠标放上去就会有提示 <el-tooltip effect="dark" content="编辑" placement="top" :enterable="false"> <el-button type="primary" icon="el-icon-edit" size="small"></el-button> </el-tooltip> <el-tooltip effect="dark" content="删除" placement="top" :enterable="false"> <el-button type="danger" icon="el-icon-delete" size="small"></el-button> </el-tooltip> <el-tooltip effect="dark" content="详细" placement="top" :enterable="false"> <el-button type="warning" icon="el-icon-setting" size="small"></el-button> </el-tooltip> </template> </el-table-column>