鼠标移入显示删除/编辑按钮

 

<div class="list-box">
   <div class="list-item" v-for="(item, index) in filters" :key="item.index">
       <div class="item-box line1hiden">
            {{ item.columnComment }}
       </div>
   <div class="right-box">
        <el-button type="text" size="mini" @click="openEditDialog(item, index)">删除</el-button>
        <span class="el-icon-d-caret"></span>
  </div>
</div> 
.list-box {
  .all-select {
    min-height: 50px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;

    color: rgba(0,0,0,0.85);
    font-size: 14px;

    .label {
      margin-left: 5px;
    }
  }

  .list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    margin-top: 10px;
    font-size: 14px;
    .label {
      margin-left: 5px;
    }
    .right-box {
      align-items: center;
      color: #B2B8D0;
      margin-right: 15px;
      display: none;
      .el-button {
        margin-right: 5px;
      }
    }
  }
  .list-item:hover {
    background-color: #F7F7F9;
    .right-box {
      display: flex;
    }
  }
}

相关推荐

  1. layui实现鼠标/出时显示/隐藏tips

    2024-07-11 04:38:05       25 阅读
  2. 鼠标出事件

    2024-07-11 04:38:05       55 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-11 04:38:05       70 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-11 04:38:05       74 阅读
  3. 在Django里面运行非项目文件

    2024-07-11 04:38:05       62 阅读
  4. Python语言-面向对象

    2024-07-11 04:38:05       72 阅读

热门阅读

  1. KKT条件

    2024-07-11 04:38:05       24 阅读
  2. vscode离线方式远程到没有网络的服务器上

    2024-07-11 04:38:05       19 阅读
  3. 第一节 SHELL脚本中的常用命令(1)

    2024-07-11 04:38:05       17 阅读
  4. 开发指南042-产生待办

    2024-07-11 04:38:05       23 阅读
  5. 理解c程序的翻译过程

    2024-07-11 04:38:05       22 阅读
  6. 目标检测之非极大值抑制——NMS

    2024-07-11 04:38:05       27 阅读