Antd Design Vue中 修改table表格鼠标移入的行样式

a-table的父级盒子选择器 >>> .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-row-hover,.ant-table-row-hover>td{
    background:none !important;
}

需求记录:

在使用ant-design-vue库的表格组件的时候,表格内因为有a-switch开关组件,导致在鼠标经过当前行的后,a-switch所在的td,border-bottom样式消失,

  • 如图所示(bug复现)

在这里插入图片描述

解决此bug

取消 表格鼠标移入的行 背景色样式

Logo

前往低代码交流专区

更多推荐