Commit da4aea1399f67759b06266aa410036f69fde9521

Authored by vben
1 parent 77028321

fix: fix table small style (#67)

src/components/Table/src/style/index.less
... ... @@ -35,37 +35,13 @@
35 35 }
36 36 }
37 37  
38   - .resize-table-th {
39   - position: relative !important;
40   -
41   - .table-draggable-handle {
42   - position: absolute;
43   - right: -5px;
44   - bottom: 0;
45   - left: auto !important;
46   - height: 100% !important;
47   - cursor: col-resize;
48   - transform: none !important;
49   - touch-action: none;
50   - }
51   - }
52   -
53   - &-drag-body {
54   - position: relative;
55   - cursor: move;
56   - }
57   -
58   - .drag-line td {
59   - border-top: 2px dashed @primary-color;
60   - }
61   -
62 38 .ant-table-wrapper {
63 39 padding: 8px;
64 40 background: #fff;
65 41 border-radius: 2px;
66 42  
67 43 .ant-table-title {
68   - padding: 0 0 10px 0 !important;
  44 + padding: 0 0 8px 0 !important;
69 45 }
70 46  
71 47 .ant-table.ant-table-bordered .ant-table-title {
... ... @@ -75,16 +51,20 @@
75 51  
76 52 //
77 53 .ant-table {
  54 + border: none;
  55 +
78 56 &-title {
79 57 display: flex;
80 58 justify-content: space-between;
81 59 align-items: center;
82 60 padding: 8px 6px;
  61 + border-bottom: none;
83 62 }
84 63  
85 64 .ant-table-thead > tr > th,
86 65 .ant-table-header {
87 66 background: #f1f3f4;
  67 + background-color: #f1f3f4 !important;
88 68 }
89 69  
90 70 .ant-table-tbody > tr.ant-table-row-selected td {
... ... @@ -100,6 +80,10 @@
100 80 }
101 81  
102 82 .ant-table-thead {
  83 + tr {
  84 + border: none;
  85 + }
  86 +
103 87 th {
104 88 border: none;
105 89 }
... ... @@ -135,11 +119,6 @@
135 119 border-right: 1px solid @border-color !important;
136 120 }
137 121  
138   - // .ant-table-thead > tr > th,
139   - // .ant-table-tbody > tr > td {
140   - // padding: 9px 8px !important;
141   - // }
142   -
143 122 .ant-pagination {
144 123 margin: 10px 0 0 0;
145 124 }
... ... @@ -160,6 +139,10 @@
160 139  
161 140 .ant-table-fixed {
162 141 border-bottom: none;
  142 +
  143 + .ant-table-thead th {
  144 + background: rgb(241, 243, 244);
  145 + }
163 146 }
164 147 }
165 148  
... ...