fix(collection-manager): should expand all rows by default when adding a new field

This commit is contained in:
Rairn 2023-04-24 10:09:30 +08:00
parent 683db5b3ba
commit 460d69fba8

View File

@ -426,6 +426,7 @@ export const CollectionFields = (props) => {
className={tableContainer}
expandable={{
defaultExpandAllRows: true,
defaultExpandedRowKeys: dataSource.map((d) => d.key),
expandedRowClassName: () => rowStyle,
expandedRowRender: (record) =>
record.inherit ? (