Ant design vue 样式调整(包含导航栏、a-table表格、分页)

需求描述

以下样式均为ant design vue样式调整,进行一些界面上的优化

修改左侧导航栏改变颜色(选中及悬浮)

如果你想修改左侧导航选中后 以及鼠标悬浮在某个菜单栏上改变样式时,把下面的三段代码复制到 你项目下的public文件夹下的index.html文件里,注意要把这段代码放到<style></style>标签里

鼠标点击菜单后改变背景颜色

     .ant-menu-item-selected{
      background: linear-gradient(270.00deg, rgba(125,178,217,0.50),rgba(196,196,196,0.00) 100%) !important;
    }

鼠标选中后改变颜色

    .ant-table-tbody > tr:hover:not(.ant-table-expanded-row) > td,.ant-table-row-hover,.ant-table-row-hover>td{
      background-color: rgb(239, 242, 245) !important;
    }
        .ant-menu-inline .ant-menu-item::after{
      border-right: 3px solid rgb(18, 92, 179)!important;
    }

鼠标点击菜单后改变字体颜色

在你的项目下src--->components--->layouts--->TabLayout.vue文件里进行修改

  .ant-menu-item-selected > a, .ant-menu-item-selected > a:hover{
    color: #125CB3 !important;
  }

鼠标悬浮菜单改变字体颜色

在你的项目下src--->components--->layouts--->TabLayout.vue文件里进行修改

  .ant-menu-inline > a, .ant-menu-item > a:hover{
    color: #125CB3 !important;
  }

修改a-table表格中字体颜色

.ant-table-tbody > tr > td {
  color: white;
  background: #3071b9 !important;
}

修改分页页数颜色

.ant-pagination-item-active a{
    color: #125CB3 !important;
  }
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值