陈文彬
2020-10-08 f2c7638bd7789bddacd56ea2ab809f4a0b3b86cb
提交 | 用户 | age
faf3f4 1 @import (reference) '../../../../design/index.less';
f2c763 2 @border-color: #cecece4d;
faf3f4 3
4 .basic-table {
5   &-title {
6     display: flex;
7     justify-content: space-between;
8     align-items: center;
9   }
10
11   &-row__striped {
12     td {
13       background: #fafafa;
14     }
15   }
16
17   &-img__preview {
18     display: flex;
19
20     img {
21       margin-right: 4px;
22     }
23   }
24
25   &-action {
26     display: flex;
27   }
28
29   &-toolbar {
30     > * {
31       margin-right: 10px;
32     }
33   }
34
35   .resize-table-th {
36     position: relative !important;
37
38     .table-draggable-handle {
39       position: absolute;
40       right: -5px;
41       bottom: 0;
42       left: auto !important;
43       height: 100% !important;
44       cursor: col-resize;
45       transform: none !important;
46       touch-action: none;
47     }
48   }
49
50   &-drag-body {
51     position: relative;
52     cursor: move;
53   }
54
55   .drag-line td {
56     border-top: 2px dashed @primary-color;
57   }
58
59   .ant-table-wrapper {
60     padding: 8px;
61     background: #fff;
62     border-radius: 2px;
63
64     .ant-table-title {
65       padding: 0 0 10px 0 !important;
66     }
67
68     .ant-table.ant-table-bordered .ant-table-title {
69       border: none !important;
70     }
71   }
72
73   //
74   .ant-table {
75     &-title {
76       display: flex;
77       justify-content: space-between;
78       align-items: center;
79       padding: 8px 6px;
80     }
81
82     .ant-table-thead > tr > th,
83     .ant-table-header {
84       background: #f1f3f4;
85     }
86
87     .ant-table-tbody > tr.ant-table-row-selected td {
88       background: fade(@primary-color, 8%) !important;
89     }
90   }
91
92   .ant-table-bordered .ant-table-header > table,
93   .ant-table-bordered .ant-table-body > table,
94   .ant-table-bordered .ant-table-fixed-left table,
95   .ant-table-bordered .ant-table-fixed-right table {
f2c763 96     border: 1px solid @border-color !important;
faf3f4 97   }
98
99   .ant-table-thead {
100     th {
101       border: none;
102     }
103   }
104
105   .ant-table-bordered .ant-table-tbody > tr > td {
f2c763 106     border-bottom: 1px solid @border-color !important;
faf3f4 107
108     &:last-child {
109       border-right: none !important;
110     }
111   }
112
113   .ant-table.ant-table-bordered .ant-table-footer,
114   .ant-table.ant-table-bordered .ant-table-title {
115     border: 1px solid @border-color !important;
116   }
117
118   .ant-table-bordered.ant-table-empty .ant-table-placeholder {
119     border: 1px solid @border-color !important;
120   }
121
122   .ant-table td {
123     white-space: nowrap;
124   }
125
126   .ant-table-row-cell-last {
127     border-right: none !important;
128   }
129
130   .ant-table-bordered .ant-table-thead > tr > th,
131   .ant-table-bordered .ant-table-tbody > tr > td {
f2c763 132     border-right: 1px solid @border-color !important;
faf3f4 133   }
134
135   .ant-table-thead > tr > th,
136   .ant-table-tbody > tr > td {
137     padding: 9px 8px !important;
138   }
139
140   .ant-pagination {
141     margin: 10px 0 0 0;
142   }
143
144   .ant-table-body {
145     overflow-x: auto !important;
146     overflow-y: scroll !important;
147   }
148
149   .ant-table-header {
150     margin-bottom: 0 !important;
151     overflow-x: hidden !important;
152     overflow-y: scroll !important;
153   }
154
155   .ant-table-fixed-right .ant-table-header {
f2c763 156     border-left: 1px solid @border-color !important;
faf3f4 157
158     .ant-table-fixed {
159       border-bottom: none;
160     }
161   }
162
163   .ant-table-fixed-left {
164     .ant-table-header {
165       overflow-y: hidden !important;
166     }
167
168     .ant-table-fixed {
169       border-bottom: none;
170     }
171   }
172
173   .ant-radio {
174     &-inner {
175       border-color: @text-color-base;
176     }
177   }
178
179   .ant-checkbox {
180     &:not(.ant-checkbox-checked) {
181       .ant-checkbox-inner {
182         border-color: @text-color-base;
183       }
184     }
185   }
186
187   .ant-table-bordered .ant-table-thead > tr:not(:last-child) > th,
188   .ant-table-tbody > tr > td {
189     word-break: break-word;
f2c763 190     border-color: @border-color !important;
faf3f4 191   }
192
193   .ant-table-footer {
194     padding: 0;
195
196     .ant-table-wrapper {
197       padding: 0;
198     }
199
200     table {
201       border: none !important;
202     }
203
204     .ant-table-body {
205       overflow-x: hidden !important;
206       overflow-y: scroll !important;
207     }
208
209     td {
210       padding: 12px 8px;
211     }
212   }
213 }
214
215 .table-form-container {
216   padding: 16px;
217
218   .ant-form {
219     padding: 12px 12px 4px 12px;
220     margin-bottom: 12px;
221     background: #fff;
222     border-radius: 2px;
223   }
224
225   .ant-table-wrapper {
226     border-radius: 2px;
227   }
228 }