效果:

 

 代码:

<el-table-column label="操作" align="center" width="110px">
          <template slot-scope="scope">
            <el-dropdown split-button type="primary" size="mini" @click="handleEdit(scope.row)">
              编辑
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>
                  <span style="color: red" @click="handleDel(scope.row)"><i class="el-icon-delete"/>删除</span>
                </el-dropdown-item>
              </el-dropdown-menu>
            </el-dropdown>
          </template>
        </el-table-column>

 

posted on 2021-08-13 10:12  周文豪  阅读(636)  评论(0编辑  收藏  举报