fix: sub table overflow

This commit is contained in:
chenos 2020-12-30 22:43:47 +08:00
parent 859bb18f97
commit f70b229985
2 changed files with 10 additions and 2 deletions

View File

@ -178,8 +178,8 @@ export function SubTableField(props: any) {
return null; return null;
} }
return ( return (
<div> <div className={'sub-table-field'}>
<Table size={'middle'} columns={fields2columns(children)} dataSource={value} pagination={false}/> <Table size={'small'} columns={fields2columns(children)} dataSource={value} pagination={false}/>
</div> </div>
); );
} }

View File

@ -13,3 +13,11 @@
text-align: right; text-align: right;
} }
} }
.sub-table-field {
overflow: auto;
> .ant-table-wrapper {
width: 1px;
overflow: visible;
}
}