Skip to content

Commit 1e61da6

Browse files
committed
fix(table): fix tree node align
修复树形表格的带有展开图标的单元格的内容对齐问题 fixed: #829
1 parent 9228282 commit 1e61da6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.zh_CN.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
### 🐛 Bug Fixes
22

3-
- **Table** 修复滚动条样式问题
3+
- **Table**
4+
- 修复滚动条样式问题
5+
- 修复树形表格的带有展开图标的单元格的内容对齐问题
46
- **AppSearch** 修复可能会搜索隐藏菜单的问题
57
- **其它** 修复菜单默认折叠的配置不起作用的问题
68

src/components/Table/src/components/ExpandIcon.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { BasicArrow } from '/@/components/Basic';
33
export default () => {
44
return (props: Recordable) => {
55
if (!props.expandable) {
6-
return <span />;
6+
return <span class="ant-table-row-expand-icon ant-table-row-spaced" />;
77
}
88
return (
99
<BasicArrow
10-
class="mr-1"
10+
style="margin-right: 8px"
1111
iconStyle="margin-top: -2px;"
1212
onClick={(e: Event) => {
1313
props.onExpand(props.record, e);

0 commit comments

Comments
 (0)