Skip to content

Commit 988a684

Browse files
author
huangshuwei
committed
fix expand bug when column fixed
1 parent 7ede3e7 commit 988a684

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/style/ve-table.less

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
height: @ve-table-head-row-height;
5353
th.ve-table-header-th {
5454
background-color: @ve-table-header-background-color;
55-
padding: 10px;
55+
padding: @ve-table-head-row-td-padding;
5656
font-weight: 500;
5757
color: @ve-table-head-text-color;
5858
}
@@ -68,11 +68,14 @@
6868
td.ve-table-expand-td {
6969
background-color: @ve-table-body-background-color;
7070
color: @ve-table-body-text-color;
71-
padding: 10px;
7271
// hack content fill td height
7372
//height: 1px;
7473
height: inherit;
7574
}
75+
76+
td.ve-table-body-td {
77+
padding: @ve-table-body-row-td-padding;
78+
}
7679
}
7780

7881
tr.ve-table-expand-tr {
@@ -115,7 +118,7 @@
115118
td.ve-table-footer-td {
116119
background-color: @ve-table-foot-background-color;
117120
color: @ve-table-foot-text-color;
118-
padding: 10px;
121+
padding: @ve-table-foot-row-td-padding;
119122
}
120123
}
121124
}
@@ -322,10 +325,11 @@
322325

323326
// expand row
324327
.ve-table-expand-tr {
325-
.ve-table-fixed-left {
328+
.ve-table-expand-td-content {
326329
position: sticky;
327330
z-index: @ve-fixed-body-cell-index;
328-
left: 10px;
331+
left: 0px;
332+
padding: @ve-table-body-row-td-padding;
329333
}
330334
}
331335
}

0 commit comments

Comments
 (0)