forked from opentiny/tiny-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable.less
49 lines (41 loc) · 998 Bytes
/
table.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@import '../../custom.less';
@grid-cell-prefix-cls: ~'@{css-prefix}grid-cell';
@grid-cell-prefix: ~'@{css-prefix}grid';
@grid-checkbox-prefix-cls: ~'@{css-prefix}grid-checkbox';
.TextEllipsis() {
@apply overflow-hidden;
@apply text-ellipsis;
@apply whitespace-nowrap;
@apply pl-2;
@apply box-border;
}
.DefaultColumnHeight() {
@apply h-9;
}
.MediumColumnHeight() {
@apply h-10;
@apply text-sm;
}
.SmallColumnHeight() {
@apply h-9;
}
.MiniColumnHeight() {
@apply h-8;
}
.CellEllipsis() {
&:not(.col__actived) {
.@{grid-cell-prefix-cls} {
.TextEllipsis();
line-height: 1.375rem;
// 表头布局从block改为了flex,此处兼容插槽文本溢出不显示省略号问题
&:not(:has(.tiny-grid-cell-text)) > span:only-of-type:not(.@{grid-cell-prefix}__expanded) {
@apply text-ellipsis;
@apply overflow-hidden;
}
& > .@{grid-checkbox-prefix-cls} {
.TextEllipsis();
@apply pl-0;
}
}
}
}