Ant 디자인 vue 스타일 조정(내비게이션 바, 테이블 형식, 페이지 매김 포함)

요구 사항 설명

다음 스타일은 모두 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;
  }

테이블 테이블의 글꼴 색상 수정

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

페이지 번호 색상 수정

.ant-pagination-item-active a{
    
    
    color: #125CB3 !important;
  }

추천

출처blog.csdn.net/xiaohua616/article/details/131020456