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>
posted @ 2020-01-18 09:58  流年中渲染了微笑  阅读(613)  评论(0编辑  收藏  举报