Skip to content

Commit

Permalink
fix(table): fix index column style
Browse files Browse the repository at this point in the history
修复序号列的样式问题
  • Loading branch information
mynetfan committed Jul 9, 2021
1 parent 05329ce commit c7c0a7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Table/src/components/ExpandIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { BasicArrow } from '/@/components/Basic';
export default () => {
return (props: Recordable) => {
if (!props.expandable) {
return <span class="ant-table-row-expand-icon ant-table-row-spaced" />;
if (props.expanded) {
return <span class="ant-table-row-expand-icon ant-table-row-spaced" />;
} else {
return <span />;
}
}
return (
<BasicArrow
Expand Down

0 comments on commit c7c0a7e

Please sign in to comment.