Commit 1e61da644f65a79ce10fde98ee017aba7d36be10
1 parent
9228282a
fix(table): fix tree node align
修复树形表格的带有展开图标的单元格的内容对齐问题 fixed: #829
Showing
2 changed files
with
5 additions
and
3 deletions
CHANGELOG.zh_CN.md
src/components/Table/src/components/ExpandIcon.tsx
... | ... | @@ -3,11 +3,11 @@ import { BasicArrow } from '/@/components/Basic'; |
3 | 3 | export default () => { |
4 | 4 | return (props: Recordable) => { |
5 | 5 | if (!props.expandable) { |
6 | - return <span />; | |
6 | + return <span class="ant-table-row-expand-icon ant-table-row-spaced" />; | |
7 | 7 | } |
8 | 8 | return ( |
9 | 9 | <BasicArrow |
10 | - class="mr-1" | |
10 | + style="margin-right: 8px" | |
11 | 11 | iconStyle="margin-top: -2px;" |
12 | 12 | onClick={(e: Event) => { |
13 | 13 | props.onExpand(props.record, e); | ... | ... |