Skip to content

Commit 0343fc8

Browse files
committed
fix(): refine table row height
1 parent 888ffeb commit 0343fc8

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

bricks/advanced/docs/eo-next-table.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
- brick: eo-button
4949
properties:
5050
type: link
51+
size: small
5152
icon:
5253
lib: antd
5354
icon: edit
@@ -59,6 +60,7 @@
5960
- brick: eo-button
6061
properties:
6162
type: link
63+
size: small
6264
danger: true
6365
icon:
6466
lib: antd
@@ -693,6 +695,7 @@ children:
693695
- brick: eo-next-table
694696
properties:
695697
pagination: false
698+
bordered: true
696699
columns:
697700
- dataIndex: name
698701
key: name
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
11
:root {
22
--eo-table-head-cell-padding: 14px 12px;
3+
--eo-table-head-cell-height: 51px;
34
--eo-table-body-cell-padding: 11px 12px;
5+
--eo-table-body-cell-height: 45px;
46
}
57

68
html[data-ui="v8-2"] {
79
--eo-table-head-cell-padding: 9px 12px;
10+
--eo-table-head-cell-height: 41px;
811

912
eo-next-table[size="large"] {
10-
--eo-table-body-cell-padding: 11px 12px;
13+
--eo-table-body-cell-padding: 9px 12px;
14+
--eo-table-body-cell-height: 45px;
1115
}
1216

1317
eo-next-table[size="middle"] {
1418
--eo-table-head-cell-padding: 7px 12px;
15-
--eo-table-body-cell-padding: 8px 12px;
19+
--eo-table-head-cell-height: 37px;
20+
--eo-table-body-cell-padding: 6px 12px;
21+
--eo-table-body-cell-height: 39px;
1622
}
1723

1824
eo-next-table[size="small"] {
1925
--eo-table-head-cell-padding: 3px 12px;
20-
--eo-table-body-cell-padding: 4px 12px;
26+
--eo-table-head-cell-height: 29px;
27+
--eo-table-body-cell-padding: 1px 12px;
28+
--eo-table-body-cell-height: 31px;
2129
}
2230
}

bricks/advanced/src/next-table/styles.shadow.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
> th,
5959
.next-table.ant-table-wrapper .ant-table .ant-table-container tfoot > tr > th {
6060
padding: var(--eo-table-head-cell-padding);
61+
height: var(--eo-table-head-cell-height);
6162
}
6263

6364
.next-table.ant-table-wrapper .ant-table .ant-table-container .ant-table-cell,
@@ -69,6 +70,7 @@
6970
> td,
7071
.next-table.ant-table-wrapper .ant-table .ant-table-container tfoot > tr > td {
7172
padding: var(--eo-table-body-cell-padding);
73+
height: var(--eo-table-body-cell-height);
7274
}
7375

7476
.ant-table-wrapper
@@ -159,6 +161,15 @@
159161
right: 11px;
160162
}
161163

164+
.next-table.ant-table-wrapper
165+
.ant-table-ping-left
166+
.ant-table-cell-fix-left-first::after,
167+
.next-table.ant-table-wrapper
168+
.ant-table-ping-left
169+
.ant-table-cell-fix-left-last::after {
170+
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
171+
}
172+
162173
.next-table.ant-table-wrapper
163174
.ant-table-ping-right
164175
.ant-table-cell-fix-right-first::after,
@@ -168,6 +179,18 @@
168179
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
169180
}
170181

182+
.next-table.ant-table-wrapper
183+
.ant-table-ping-left:not(.ant-table-has-fix-left)
184+
.ant-table-container::before {
185+
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
186+
}
187+
188+
.next-table.ant-table-wrapper
189+
.ant-table-ping-right:not(.ant-table-has-fix-right)
190+
.ant-table-container::after {
191+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
192+
}
193+
171194
.next-table.ant-table-wrapper .ant-table-column-sorters {
172195
justify-content: initial;
173196
}

0 commit comments

Comments
 (0)