744eb0af
梁灏
update Table comp...
|
1
|
@table-prefix-cls: ~"@{css-prefix}table";
|
adaeca88
梁灏
update Table
|
2
|
@table-select-item-prefix-cls: ~"@{table-prefix-cls}-filter-select-item";
|
744eb0af
梁灏
update Table comp...
|
3
4
|
.@{table-prefix-cls} {
|
45e7ed7e
梁灏
update Table
|
5
6
7
8
9
|
&-wrapper{
position: relative;
border: 1px solid @border-color-base;
border-bottom: 0;
border-right: 0;
|
72979a78
梁灏
fix #4207
|
10
|
overflow: hidden; // 开启 max-height 时,没有 overflow: hidden,则底部多出 1px,早期没有 overflow 是因为有些控件没有加 transfer
|
45e7ed7e
梁灏
update Table
|
11
|
}
|
39311a50
梁灏
update Table
|
12
13
|
width: inherit;
height: 100%;
|
744eb0af
梁灏
update Table comp...
|
14
|
max-width: 100%;
|
0d136465
梁灏
update Table
|
15
|
overflow: hidden;
|
744eb0af
梁灏
update Table comp...
|
16
17
|
color: @text-color;
font-size: @font-size-small;
|
0d136465
梁灏
update Table
|
18
|
background-color: #fff;
|
45e7ed7e
梁灏
update Table
|
19
|
|
0d136465
梁灏
update Table
|
20
|
box-sizing: border-box;
|
45e7ed7e
梁灏
update Table
|
21
|
//position: relative;
|
744eb0af
梁灏
update Table comp...
|
22
|
|
adaeca88
梁灏
update Table
|
23
24
25
26
|
&-hide{
opacity: 0;
}
|
a3547c1b
梁灏
update Table
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
&:before{
content: '';
width: 100%;
height: 1px;
position: absolute;
left: 0;
bottom: 0;
background-color: @border-color-base;
z-index: 1;
}
&:after{
content: '';
width: 1px;
height: 100%;
position: absolute;
top: 0;
right: 0;
background-color: @border-color-base;
|
b8a43000
梁灏
update Table
|
46
|
z-index: 3;
|
a3547c1b
梁灏
update Table
|
47
48
|
}
|
e7e8c8ff
梁灏
update Table
|
49
|
&-with-header{
|
0f4ccf44
梁灏
release 0.9.9
|
50
|
//border-radius: @border-radius-base @border-radius-base 0 0;
|
e7e8c8ff
梁灏
update Table
|
51
52
53
|
}
&-with-footer{
|
0f4ccf44
梁灏
release 0.9.9
|
54
55
|
//border: 1px solid @border-color-base;
//border-radius: 0 0 @border-radius-base @border-radius-base;
|
e7e8c8ff
梁灏
update Table
|
56
57
58
|
}
&-with-header&-with-footer{
|
0f4ccf44
梁灏
release 0.9.9
|
59
|
//border-radius: @border-radius-base;
|
e7e8c8ff
梁灏
update Table
|
60
61
62
63
64
65
66
67
68
69
70
|
}
&-title, &-footer{
height: 48px;
line-height: 48px;
border-bottom: 1px solid @border-color-split;
}
&-footer{
border-bottom: none;
}
|
192e2cb8
梁灏
update Table
|
71
72
73
|
&-header{
overflow: hidden;
}
|
e7e8c8ff
梁灏
update Table
|
74
|
&-body{
|
eec3859c
huanghong
fixed table scollbar
|
75
|
//overflow: auto;
|
db8d1f7d
梁灏
fixed #121
|
76
|
//position: relative;
|
9fea8e7d
huanghong
fixed ivu-table-f...
|
77
78
79
80
81
82
83
|
}
&-overflowX{
overflow-x: scroll;
}
&-overflowY{
overflow-y: scroll;
|
e7e8c8ff
梁灏
update Table
|
84
|
}
|
8e171de8
huanghong
fixed #3124
|
85
86
87
88
89
|
&-tip{
overflow-x: auto;
overflow-y: hidden;
//position: relative;
}
|
e7e8c8ff
梁灏
update Table
|
90
|
|
e7e8c8ff
梁灏
update Table
|
91
92
93
94
95
96
97
98
99
|
&-with-fixed-top&-with-footer{
.@{table-prefix-cls}-footer{
border-top: 1px solid @border-color-base;
}
tbody tr:last-child td{
border-bottom: none;
}
}
|
0d136465
梁灏
update Table
|
100
101
102
103
104
105
106
107
|
th, td
{
min-width: 0;
height: 48px;
box-sizing: border-box;
text-align: left;
text-overflow: ellipsis;
vertical-align: middle;
|
642299b9
梁灏
update Table
|
108
|
//position: relative;
|
0d136465
梁灏
update Table
|
109
|
border-bottom: 1px solid @border-color-split;
|
744eb0af
梁灏
update Table comp...
|
110
111
|
}
|
0d136465
梁灏
update Table
|
112
113
|
th {
height: 40px;
|
744eb0af
梁灏
update Table comp...
|
114
115
|
white-space: nowrap;
overflow: hidden;
|
0d136465
梁灏
update Table
|
116
117
118
119
120
|
background-color: @table-thead-bg;
}
td{
background-color: #fff;
transition: background-color @transition-time @ease-in-out;
|
744eb0af
梁灏
update Table comp...
|
121
122
|
}
|
0d136465
梁灏
update Table
|
123
124
|
th&-column,
td&-column
|
744eb0af
梁灏
update Table comp...
|
125
|
{
|
0d136465
梁灏
update Table
|
126
127
128
129
130
131
132
133
134
135
136
137
|
&-left{
text-align: left;
}
&-center{
text-align: center;
}
&-right{
text-align: right;
}
}
& table{
|
a3547c1b
梁灏
update Table
|
138
139
|
//width: 100%;
table-layout: fixed;
|
0d136465
梁灏
update Table
|
140
141
142
143
144
145
146
147
148
149
|
}
&-border{
th,td{
border-right: 1px solid @border-color-split;
}
}
&-cell{
padding-left: 18px;
padding-right: 18px;
overflow: hidden;
|
744eb0af
梁灏
update Table comp...
|
150
|
text-overflow: ellipsis;
|
0d136465
梁灏
update Table
|
151
152
153
|
white-space: normal;
word-break: break-all;
box-sizing: border-box;
|
eedcba58
Rijn
Added ellipsis pr...
|
154
155
156
157
158
159
160
|
&-ellipsis {
word-break: keep-all;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
|
08fd628d
Aresn
Table support expand
|
161
|
|
8c51d57d
梁灏
Table Column add ...
|
162
163
|
&-tooltip{
width: 100%;
|
c9977535
msidolphin
fix #5472
|
164
165
|
display: flex;
align-items: center;
|
8c51d57d
梁灏
Table Column add ...
|
166
167
168
169
170
171
172
173
|
&-content{
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
|
08fd628d
Aresn
Table support expand
|
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
&-with-expand{
height: 47px;
line-height: 47px;
padding: 0;
text-align: center;
}
&-expand{
cursor: pointer;
transition: transform @transition-time @ease-in-out;
i{
font-size: @font-size-base;
}
&-expanded{
transform: rotate(90deg);
}
}
|
a0f48947
梁灏
Optimize Table ch...
|
191
192
193
194
|
&-sort{
cursor: pointer;
user-select: none;
}
|
fc3e16cf
梁灏
update Table sele...
|
195
196
197
198
199
200
201
|
// #3159
&-with-selection{
.@{checkbox-prefix-cls}-wrapper{
margin-right: 0;
}
}
|
0d136465
梁灏
update Table
|
202
|
}
|
3ef4dfb9
梁灏
update Table
|
203
204
205
|
&-hidden{
visibility: hidden;
}
|
0d136465
梁灏
update Table
|
206
207
|
th &-cell{
display: inline-block;
|
642299b9
梁灏
update Table
|
208
|
//position: relative;
|
0d136465
梁灏
update Table
|
209
210
211
212
|
word-wrap: normal;
vertical-align: middle;
}
|
367a4196
Aresn
update Table
|
213
214
215
216
217
|
td&-expanded-cell{
padding: 20px 50px;
background: @table-thead-bg;
}
|
b8a43000
梁灏
update Table
|
218
219
220
|
&-stripe &-body,
&-stripe &-fixed-body
{
|
0d136465
梁灏
update Table
|
221
222
223
224
225
|
tr:nth-child(2n) {
td{
background-color: @table-td-stripe-bg;
}
}
|
58cd4675
梁灏
fixed #1380
|
226
227
228
229
230
231
|
// #1380
tr.@{table-prefix-cls}-row-hover{
td{
background-color: @table-td-hover-bg;
}
}
|
0d136465
梁灏
update Table
|
232
233
|
}
|
abdec99d
梁灏
update Table
|
234
|
tr&-row-hover{
|
0d136465
梁灏
update Table
|
235
236
237
238
239
240
241
242
243
244
245
246
247
|
td{
background-color: @table-td-hover-bg;
}
}
&-large {
font-size: @font-size-base;
th{
height: 48px;
}
td{
height: 60px;
}
|
e7e8c8ff
梁灏
update Table
|
248
249
250
251
|
&-title, &-footer{
height: 60px;
line-height: 60px;
}
|
08fd628d
Aresn
Table support expand
|
252
253
254
255
256
257
258
|
.@{table-prefix-cls}-cell-with-expand{
height: 59px;
line-height: 59px;
i{
font-size: @font-size-base+2;
}
}
|
0d136465
梁灏
update Table
|
259
260
261
262
263
264
265
266
267
|
}
&-small{
th{
height: 32px;
}
td{
height: 40px;
}
|
e7e8c8ff
梁灏
update Table
|
268
269
270
271
|
&-title, &-footer{
height: 40px;
line-height: 40px;
}
|
08fd628d
Aresn
Table support expand
|
272
273
274
275
|
.@{table-prefix-cls}-cell-with-expand{
height: 39px;
line-height: 39px;
}
|
0d136465
梁灏
update Table
|
276
277
278
|
}
&-row-highlight,
|
abdec99d
梁灏
update Table
|
279
|
tr&-row-highlight&-row-hover,
|
b8a43000
梁灏
update Table
|
280
281
|
&-stripe &-body tr&-row-highlight:nth-child(2n),
&-stripe &-fixed-body tr&-row-highlight:nth-child(2n)
|
0d136465
梁灏
update Table
|
282
283
284
285
|
{
td{
background-color: @table-td-highlight-bg;
}
|
744eb0af
梁灏
update Table comp...
|
286
|
}
|
7f34c510
梁灏
update Table
|
287
288
289
290
291
|
&-fixed, &-fixed-right{
position: absolute;
top: 0;
left: 0;
|
39311a50
梁灏
update Table
|
292
|
box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.2);
|
7f34c510
梁灏
update Table
|
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
|
&::before {
content: '';
width: 100%;
height: 1px;
background-color: @border-color-base;
position: absolute;
left: 0;
bottom: 0;
z-index: 4;
}
}
&-fixed-right{
top: 0;
left: auto;
right: 0;
|
39311a50
梁灏
update Table
|
309
|
box-shadow: -2px 0 6px -2px rgba(0, 0, 0, 0.2);
|
7f34c510
梁灏
update Table
|
310
|
}
|
63014189
huanghong
fix table fixed-r...
|
311
312
313
314
315
316
317
318
|
&-fixed-right-header{
position: absolute;
top: -1px;
right: 0;
background-color: @table-thead-bg;
border-top: 1px solid @border-color-base;
border-bottom: 1px solid @border-color-split;
}
|
b8a43000
梁灏
update Table
|
319
|
&-fixed-header{
|
1acabf79
梁灏
Table support mul...
|
320
|
overflow: hidden;
|
656cc142
梁灏
fix #5174
|
321
|
// 在 #1387 里,添加了下面的代码,但是在 #5174 会出现新的问题。
|
5c690237
梁灏
fix #5147, ref #1387
|
322
323
324
325
326
327
328
329
330
331
332
|
// 但是,在新版本里,注释掉后,#1387 的问题并没有再复现,所以注释掉
//&-with-empty{
// .@{table-prefix-cls}-hidden{
// .@{table-prefix-cls}-sort{
// display: none;
// }
// .@{table-prefix-cls}-cell span{
// display: none;
// }
// }
//}
|
b8a43000
梁灏
update Table
|
333
334
335
336
337
338
|
}
&-fixed-body{
overflow: hidden;
position: relative;
z-index: 3;
}
|
52874e27
梁灏
update Table
|
339
|
|
39311a50
梁灏
update Table
|
340
341
342
343
344
345
346
347
348
349
350
|
&-fixed-shadow {
width: 1px;
height: 100%;
position: absolute;
top: 0;
right: 0;
box-shadow: @shadow-right;
overflow: hidden;
z-index: 1;
}
|
52874e27
梁灏
update Table
|
351
352
353
|
&-sort{
.sortable();
}
|
642299b9
梁灏
update Table
|
354
355
356
357
|
&-filter{
display: inline-block;
cursor: pointer;
position: relative;
|
64ecada5
梁灏
update Table
|
358
|
//top: 1px;
|
642299b9
梁灏
update Table
|
359
360
361
362
363
364
365
|
i{
color: @btn-disable-color;
transition: color @transition-time @ease-in-out;
&:hover{
color: inherit;
}
|
99f80db0
梁灏
update Table
|
366
367
368
369
370
371
372
373
374
375
376
377
378
379
|
&.on{
color: @primary-color;
}
}
&-list{
padding: 8px 0 0;
&-item{
padding: 0 12px 8px;
.ivu-checkbox-wrapper + .ivu-checkbox-wrapper{
margin: 0;
}
label {
display: block;
|
99f80db0
梁灏
update Table
|
380
381
382
383
384
385
|
& > span{
margin-right: 4px;
}
}
}
|
adaeca88
梁灏
update Table
|
386
387
388
389
|
ul{
padding-bottom: 8px;
}
.select-item(@table-prefix-cls, @table-select-item-prefix-cls);
|
99f80db0
梁灏
update Table
|
390
391
392
393
|
}
&-footer{
padding: 4px;
border-top: 1px solid @border-color-split;
|
19c208d3
梁灏
Poptip add prop `...
|
394
395
396
397
398
399
400
|
overflow: hidden;
button:first-child{
float: left;
}
button:last-child{
float: right;
}
|
99f80db0
梁灏
update Table
|
401
|
}
|
642299b9
梁灏
update Table
|
402
|
}
|
cf7887ba
Rijn
Fixed #151
|
403
404
405
406
407
408
409
410
411
412
|
&-tip {
table {
width: 100%;
td {
text-align: center;
}
}
}
|
55f90d87
梁灏
fixed #1648
|
413
414
415
416
|
&-expanded-hidden{
visibility: hidden;
}
|
eedcba58
Rijn
Added ellipsis pr...
|
417
|
}
|
19c208d3
梁灏
Poptip add prop `...
|
418
419
420
421
422
423
424
|
.ivu-table-popper{
min-width: 0;
text-align: left;
.ivu-poptip-body{
padding: 0;
}
}
|