refactor(client): pass props to antd list (#3319)
This commit is contained in:
parent
f803105e69
commit
dfcd21f34f
@ -60,6 +60,7 @@ const InternalList = (props) => {
|
||||
>
|
||||
<SortableItem className={cx('nb-list', componentCls, hashId)}>
|
||||
<AntdList
|
||||
{...props}
|
||||
pagination={
|
||||
!meta || meta.count <= meta.pageSize
|
||||
? false
|
||||
@ -72,17 +73,19 @@ const InternalList = (props) => {
|
||||
}
|
||||
loading={service?.loading}
|
||||
>
|
||||
{field.value?.map((item, index) => {
|
||||
return (
|
||||
<RecursionField
|
||||
basePath={field.address}
|
||||
key={index}
|
||||
name={index}
|
||||
onlyRenderProperties
|
||||
schema={getSchema(index)}
|
||||
></RecursionField>
|
||||
);
|
||||
})}
|
||||
{field.value?.length
|
||||
? field.value.map((item, index) => {
|
||||
return (
|
||||
<RecursionField
|
||||
basePath={field.address}
|
||||
key={index}
|
||||
name={index}
|
||||
onlyRenderProperties
|
||||
schema={getSchema(index)}
|
||||
></RecursionField>
|
||||
);
|
||||
})
|
||||
: null}
|
||||
</AntdList>
|
||||
<Designer />
|
||||
</SortableItem>
|
||||
|
Loading…
Reference in New Issue
Block a user