fix: deleting the last field from sub table, the entire table will be deleted

This commit is contained in:
katherinehhh 2023-06-19 14:20:12 +08:00
parent a3805e3b02
commit efcf229d38
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ export const SubTable: any = observer(
.ant-table table {
}
td:not(.ant-table-selection-column) {
padding: 0 !important;
padding: 5 !important;
}
`}
bordered

View File

@ -282,7 +282,7 @@ export const TableColumnDesigner = (props) => {
)}
<SchemaSettings.Divider />
<SchemaSettings.Remove
removeParentsIfNoChildren
removeParentsIfNoChildren={!isSubTableColumn}
breakRemoveOn={{
'x-component': 'Grid',
}}