fix(table): fix index column style

修复序号列的样式问题
This commit is contained in:
无木 2021-07-09 13:37:13 +08:00
parent 05329ce950
commit c7c0a7e4c8

View File

@ -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