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} {
|
0d136465
梁灏
update Table
|
5
|
width: 100%;
|
744eb0af
梁灏
update Table comp...
|
6
|
max-width: 100%;
|
0d136465
梁灏
update Table
|
7
|
overflow: hidden;
|
744eb0af
梁灏
update Table comp...
|
8
9
|
color: @text-color;
font-size: @font-size-small;
|
0d136465
梁灏
update Table
|
10
11
12
|
background-color: #fff;
border: 1px solid @border-color-base;
border-bottom: 0;
|
a3547c1b
梁灏
update Table
|
13
|
border-right: 0;
|
0d136465
梁灏
update Table
|
14
15
|
box-sizing: border-box;
position: relative;
|
744eb0af
梁灏
update Table comp...
|
16
|
|
adaeca88
梁灏
update Table
|
17
18
19
20
|
&-hide{
opacity: 0;
}
|
a3547c1b
梁灏
update Table
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
&: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
|
40
|
z-index: 3;
|
a3547c1b
梁灏
update Table
|
41
42
|
}
|
e7e8c8ff
梁灏
update Table
|
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
&-with-header{
border-radius: @border-radius-base @border-radius-base 0 0;
}
&-with-footer{
border: 1px solid @border-color-base;
border-radius: 0 0 @border-radius-base @border-radius-base;
}
&-with-header&-with-footer{
border-radius: @border-radius-base;
}
&-title, &-footer{
height: 48px;
line-height: 48px;
border-bottom: 1px solid @border-color-split;
}
&-footer{
border-bottom: none;
}
|
192e2cb8
梁灏
update Table
|
65
66
67
|
&-header{
overflow: hidden;
}
|
e7e8c8ff
梁灏
update Table
|
68
|
&-body{
|
a3547c1b
梁灏
update Table
|
69
|
overflow: auto;
|
e7e8c8ff
梁灏
update Table
|
70
71
72
|
position: relative;
}
|
e7e8c8ff
梁灏
update Table
|
73
74
75
76
77
78
79
80
81
|
&-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
|
82
83
84
85
86
87
88
89
|
th, td
{
min-width: 0;
height: 48px;
box-sizing: border-box;
text-align: left;
text-overflow: ellipsis;
vertical-align: middle;
|
642299b9
梁灏
update Table
|
90
|
//position: relative;
|
0d136465
梁灏
update Table
|
91
|
border-bottom: 1px solid @border-color-split;
|
744eb0af
梁灏
update Table comp...
|
92
93
|
}
|
0d136465
梁灏
update Table
|
94
95
|
th {
height: 40px;
|
744eb0af
梁灏
update Table comp...
|
96
97
|
white-space: nowrap;
overflow: hidden;
|
0d136465
梁灏
update Table
|
98
99
100
101
102
|
background-color: @table-thead-bg;
}
td{
background-color: #fff;
transition: background-color @transition-time @ease-in-out;
|
744eb0af
梁灏
update Table comp...
|
103
104
|
}
|
0d136465
梁灏
update Table
|
105
106
|
th&-column,
td&-column
|
744eb0af
梁灏
update Table comp...
|
107
|
{
|
0d136465
梁灏
update Table
|
108
109
110
111
112
113
114
115
116
117
118
119
|
&-left{
text-align: left;
}
&-center{
text-align: center;
}
&-right{
text-align: right;
}
}
& table{
|
a3547c1b
梁灏
update Table
|
120
121
|
//width: 100%;
table-layout: fixed;
|
0d136465
梁灏
update Table
|
122
123
124
125
126
127
128
129
130
131
|
}
&-border{
th,td{
border-right: 1px solid @border-color-split;
}
}
&-cell{
padding-left: 18px;
padding-right: 18px;
overflow: hidden;
|
744eb0af
梁灏
update Table comp...
|
132
|
text-overflow: ellipsis;
|
0d136465
梁灏
update Table
|
133
134
135
136
|
white-space: normal;
word-break: break-all;
box-sizing: border-box;
}
|
3ef4dfb9
梁灏
update Table
|
137
138
139
|
&-hidden{
visibility: hidden;
}
|
0d136465
梁灏
update Table
|
140
141
|
th &-cell{
display: inline-block;
|
642299b9
梁灏
update Table
|
142
|
//position: relative;
|
0d136465
梁灏
update Table
|
143
144
145
146
|
word-wrap: normal;
vertical-align: middle;
}
|
b8a43000
梁灏
update Table
|
147
148
149
|
&-stripe &-body,
&-stripe &-fixed-body
{
|
0d136465
梁灏
update Table
|
150
151
152
153
154
155
156
|
tr:nth-child(2n) {
td{
background-color: @table-td-stripe-bg;
}
}
}
|
abdec99d
梁灏
update Table
|
157
|
tr&-row-hover{
|
0d136465
梁灏
update Table
|
158
159
160
161
162
163
164
165
166
167
168
169
170
|
td{
background-color: @table-td-hover-bg;
}
}
&-large {
font-size: @font-size-base;
th{
height: 48px;
}
td{
height: 60px;
}
|
e7e8c8ff
梁灏
update Table
|
171
172
173
174
|
&-title, &-footer{
height: 60px;
line-height: 60px;
}
|
0d136465
梁灏
update Table
|
175
176
177
178
179
180
181
182
183
|
}
&-small{
th{
height: 32px;
}
td{
height: 40px;
}
|
e7e8c8ff
梁灏
update Table
|
184
185
186
187
|
&-title, &-footer{
height: 40px;
line-height: 40px;
}
|
0d136465
梁灏
update Table
|
188
189
190
|
}
&-row-highlight,
|
abdec99d
梁灏
update Table
|
191
|
tr&-row-highlight&-row-hover,
|
b8a43000
梁灏
update Table
|
192
193
|
&-stripe &-body tr&-row-highlight:nth-child(2n),
&-stripe &-fixed-body tr&-row-highlight:nth-child(2n)
|
0d136465
梁灏
update Table
|
194
195
196
197
|
{
td{
background-color: @table-td-highlight-bg;
}
|
744eb0af
梁灏
update Table comp...
|
198
|
}
|
7f34c510
梁灏
update Table
|
199
200
201
202
203
|
&-fixed, &-fixed-right{
position: absolute;
top: 0;
left: 0;
|
52874e27
梁灏
update Table
|
204
|
box-shadow: @shadow-right;
|
99f80db0
梁灏
update Table
|
205
|
//overflow-x: hidden;
|
7f34c510
梁灏
update Table
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
|
&::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;
|
52874e27
梁灏
update Table
|
222
|
box-shadow: @shadow-left;
|
7f34c510
梁灏
update Table
|
223
|
}
|
b8a43000
梁灏
update Table
|
224
225
|
&-fixed-header{
overflow: hidden;
|
642299b9
梁灏
update Table
|
226
|
//position: relative;
|
b8a43000
梁灏
update Table
|
227
228
229
230
231
232
233
|
z-index: 3;
}
&-fixed-body{
overflow: hidden;
position: relative;
z-index: 3;
}
|
52874e27
梁灏
update Table
|
234
235
236
237
|
&-sort{
.sortable();
}
|
642299b9
梁灏
update Table
|
238
239
240
241
242
243
244
245
246
247
248
|
&-filter{
display: inline-block;
cursor: pointer;
position: relative;
i{
color: @btn-disable-color;
transition: color @transition-time @ease-in-out;
&:hover{
color: inherit;
}
|
99f80db0
梁灏
update Table
|
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
|
&.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;
margin-bottom: 4px;
& > span{
margin-right: 4px;
}
}
}
|
adaeca88
梁灏
update Table
|
270
271
272
273
|
ul{
padding-bottom: 8px;
}
.select-item(@table-prefix-cls, @table-select-item-prefix-cls);
|
99f80db0
梁灏
update Table
|
274
275
276
277
|
}
&-footer{
padding: 4px;
border-top: 1px solid @border-color-split;
|
642299b9
梁灏
update Table
|
278
279
280
281
282
|
}
}
.ivu-poptip-popper{
min-width: 0;
text-align: left;
|
99f80db0
梁灏
update Table
|
283
284
285
286
|
.ivu-poptip-body{
padding: 0;
}
|
642299b9
梁灏
update Table
|
287
|
}
|
744eb0af
梁灏
update Table comp...
|
288
|
}
|