Skip to content

Commit 09de858

Browse files
authored
fix(Table): fix cell border not showing (#420)
1 parent c96aa43 commit 09de858

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/examples/FixedColumnTable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const App = () => {
2525
data={data}
2626
onScroll={handleScroll}
2727
cellBordered
28+
bordered
2829
onRowClick={data => {
2930
console.log(data);
3031
}}

src/less/table.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
white-space: normal;
8686
background: @body-background;
8787
transition: none;
88+
box-sizing: border-box;
8889

8990
&.first {
9091
border-left-width: 0;
@@ -101,6 +102,7 @@
101102
}
102103
&-content {
103104
padding: 8px;
105+
box-sizing: border-box;
104106

105107
.ellipsis();
106108
}

0 commit comments

Comments
 (0)