Skip to content

Commit 7c5a1de

Browse files
committed
新增固定列功能
1 parent 8aa6944 commit 7c5a1de

File tree

5 files changed

+987
-1
lines changed

5 files changed

+987
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
.fixed-columns, .fixed-columns-right {
2+
position: absolute;
3+
top: 0;
4+
height: 100%;
5+
background-color: #fff;
6+
box-sizing: border-box;
7+
z-index: 1;
8+
box-shadow: 0 -1px 8px rgba(0, 0, 0, .08);
9+
}
10+
11+
.fixed-columns {
12+
left: 0
13+
}
14+
15+
.fixed-columns .fixed-table-body {
16+
overflow: hidden !important
17+
}
18+
19+
.fixed-columns-right {
20+
right: 0;
21+
box-shadow: -1px 0 8px rgba(0, 0, 0, .08)
22+
}
23+
24+
.fixed-columns-right .fixed-table-body {
25+
overflow-x: hidden !important
26+
}
27+
28+
.fix-sticky {
29+
position: fixed;
30+
z-index: 100;
31+
}
32+
33+
.fix-sticky thead {
34+
background: #fff;
35+
}
36+
37+
.fix-sticky thead th,
38+
.fix-sticky thead th:first-child {
39+
border-left: 0;
40+
border-right: 0;
41+
border-bottom: 1px solid #eee;
42+
border-radius: 0;
43+
}

0 commit comments

Comments
 (0)