refactor(client): pass props to antd list (#3319)

This commit is contained in:
Junyi 2024-01-04 20:57:21 +08:00 committed by GitHub
parent f803105e69
commit dfcd21f34f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,7 @@ const InternalList = (props) => {
>
<SortableItem className={cx('nb-list', componentCls, hashId)}>
<AntdList
{...props}
pagination={
!meta || meta.count <= meta.pageSize
? false
@ -72,7 +73,8 @@ const InternalList = (props) => {
}
loading={service?.loading}
>
{field.value?.map((item, index) => {
{field.value?.length
? field.value.map((item, index) => {
return (
<RecursionField
basePath={field.address}
@ -82,7 +84,8 @@ const InternalList = (props) => {
schema={getSchema(index)}
></RecursionField>
);
})}
})
: null}
</AntdList>
<Designer />
</SortableItem>