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)}>
|
<SortableItem className={cx('nb-list', componentCls, hashId)}>
|
||||||
<AntdList
|
<AntdList
|
||||||
|
{...props}
|
||||||
pagination={
|
pagination={
|
||||||
!meta || meta.count <= meta.pageSize
|
!meta || meta.count <= meta.pageSize
|
||||||
? false
|
? false
|
||||||
@ -72,17 +73,19 @@ const InternalList = (props) => {
|
|||||||
}
|
}
|
||||||
loading={service?.loading}
|
loading={service?.loading}
|
||||||
>
|
>
|
||||||
{field.value?.map((item, index) => {
|
{field.value?.length
|
||||||
return (
|
? field.value.map((item, index) => {
|
||||||
<RecursionField
|
return (
|
||||||
basePath={field.address}
|
<RecursionField
|
||||||
key={index}
|
basePath={field.address}
|
||||||
name={index}
|
key={index}
|
||||||
onlyRenderProperties
|
name={index}
|
||||||
schema={getSchema(index)}
|
onlyRenderProperties
|
||||||
></RecursionField>
|
schema={getSchema(index)}
|
||||||
);
|
></RecursionField>
|
||||||
})}
|
);
|
||||||
|
})
|
||||||
|
: null}
|
||||||
</AntdList>
|
</AntdList>
|
||||||
<Designer />
|
<Designer />
|
||||||
</SortableItem>
|
</SortableItem>
|
||||||
|
Loading…
Reference in New Issue
Block a user