lilei 1 year ago
parent
commit
62a8da7ce2
3 changed files with 6 additions and 6 deletions
  1. 1 1
      src/components/Table/index.js
  2. 3 3
      src/components/custom.less
  3. 2 2
      src/components/newThem.less

+ 1 - 1
src/components/Table/index.js

@@ -364,7 +364,7 @@ export default {
         // 自定义属性,也就是官方文档中的props,可通过条件来控制样式
         // 自定义属性,也就是官方文档中的props,可通过条件来控制样式
         style: {
         style: {
           //  设置行背景色
           //  设置行背景色
-          'background-color': record[this.rowKeyName] === this.leftAlignId ? '#fff1c5' : ''
+          'background-color': record[this.rowKeyName] === this.leftAlignId ? '#ffedeb' : ''
         },
         },
         on: {
         on: {
           // 鼠标单击行
           // 鼠标单击行

+ 3 - 3
src/components/custom.less

@@ -151,18 +151,18 @@ body{
     }
     }
     &:hover{
     &:hover{
       td{
       td{
-        background: #ffb60a!important;
+        background: #fff2f0!important;
       }
       }
     }
     }
   }
   }
   .ant-pagination.ant-table-pagination{
   .ant-pagination.ant-table-pagination{
     margin: 10px 0 0;
     margin: 10px 0 0;
   }
   }
-  .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right{
+  .ant-table-small > .ant-table-content .ant-table-body,.ant-table-fixed-right,.ant-table-fixed-left{
     margin: 0;
     margin: 0;
     tr:hover{
     tr:hover{
       td{
       td{
-        background: #ffb60a;
+        background: #fff2f0!important;
       }
       }
     }
     }
   }
   }

+ 2 - 2
src/components/newThem.less

@@ -1,5 +1,5 @@
 @font-size-base: 12px;
 @font-size-base: 12px;
-@table-row-hover-bg: color(~`colorPalette('@{warning-color}', 3) `);
+@table-row-hover-bg: color(~`colorPalette('@{primary-color}', 0.5) `);
 @text-color: fade(@black, 100%);
 @text-color: fade(@black, 100%);
 @disabled-bg: #fafafa;
 @disabled-bg: #fafafa;
 @modal-body-padding: 15px;
 @modal-body-padding: 15px;
@@ -24,7 +24,7 @@
 @ve-table-body-row-highlight-background-color: color(~`colorPalette('@{primary-color}', 1) `);
 @ve-table-body-row-highlight-background-color: color(~`colorPalette('@{primary-color}', 1) `);
  
  
 .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content{
 .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content{
-    // border-bottom: 1px solid #ddd;
+    border-bottom: 1px solid #ddd;
 }
 }
 .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content thead.ve-table-header tr.ve-table-header-tr th.ve-table-header-th{
 .ve-table .ve-table-container .ve-table-content-wrapper table.ve-table-content thead.ve-table-header tr.ve-table-header-tr th.ve-table-header-th{
     font-weight: 900;
     font-weight: 900;