mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
style: list block style improve (#4785)
This commit is contained in:
parent
59c9c0e06e
commit
12a8f2e6ac
@ -358,16 +358,7 @@ export const Grid: any = observer(
|
||||
return (
|
||||
<FilterBlockProvider>
|
||||
<GridContext.Provider value={gridContextValue}>
|
||||
<div
|
||||
className={cls(
|
||||
'nb-grid-container',
|
||||
// css`
|
||||
// & {
|
||||
// margin-bottom: ${designable ? 0 : -token.marginLG}px;
|
||||
// }
|
||||
// `,
|
||||
)}
|
||||
>
|
||||
<div className={cls('nb-grid-container')}>
|
||||
<div className={cls(`nb-grid ${styles.container}`)} style={{ position: 'relative' }} ref={gridRef}>
|
||||
<div className="nb-grid-warp">
|
||||
<DndWrapper dndContext={props.dndContext}>
|
||||
|
@ -75,46 +75,47 @@ const InternalList = (props) => {
|
||||
componentCls,
|
||||
hashId,
|
||||
css`
|
||||
.ant-spin-nested-loading {
|
||||
.nb-list-container {
|
||||
height: ${height ? height + 'px' : '100%'};
|
||||
overflow-y: ${height ? 'auto' : 'null'};
|
||||
.ant-spin-container {
|
||||
width: 100%;
|
||||
overflow-x: clip;
|
||||
padding-right: ${token.paddingSM + 'px'};
|
||||
}
|
||||
overflow-y: auto;
|
||||
margin-left: -${token.marginLG}px;
|
||||
margin-right: -${token.marginLG}px;
|
||||
padding-left: ${token.marginLG}px;
|
||||
padding-right: ${token.marginLG}px;
|
||||
}
|
||||
`,
|
||||
)}
|
||||
>
|
||||
<AntdList
|
||||
{...props}
|
||||
pagination={
|
||||
!meta || meta.count <= meta.pageSize
|
||||
? false
|
||||
: {
|
||||
onChange: onPaginationChange,
|
||||
total: meta?.count || 0,
|
||||
pageSize: meta?.pageSize || 10,
|
||||
current: meta?.page || 1,
|
||||
}
|
||||
}
|
||||
loading={service?.loading}
|
||||
>
|
||||
{field.value?.length
|
||||
? field.value.map((item, index) => {
|
||||
return (
|
||||
<RecursionField
|
||||
basePath={field.address}
|
||||
key={index}
|
||||
name={index}
|
||||
onlyRenderProperties
|
||||
schema={getSchema(index)}
|
||||
></RecursionField>
|
||||
);
|
||||
})
|
||||
: null}
|
||||
</AntdList>
|
||||
<div className="nb-list-container">
|
||||
<AntdList
|
||||
{...props}
|
||||
pagination={
|
||||
!meta || meta.count <= meta.pageSize
|
||||
? false
|
||||
: {
|
||||
onChange: onPaginationChange,
|
||||
total: meta?.count || 0,
|
||||
pageSize: meta?.pageSize || 10,
|
||||
current: meta?.page || 1,
|
||||
}
|
||||
}
|
||||
loading={service?.loading}
|
||||
>
|
||||
{field.value?.length
|
||||
? field.value.map((item, index) => {
|
||||
return (
|
||||
<RecursionField
|
||||
basePath={field.address}
|
||||
key={index}
|
||||
name={index}
|
||||
onlyRenderProperties
|
||||
schema={getSchema(index)}
|
||||
></RecursionField>
|
||||
);
|
||||
})
|
||||
: null}
|
||||
</AntdList>
|
||||
</div>
|
||||
<Designer />
|
||||
</SortableItem>
|
||||
</SchemaComponentOptions>,
|
||||
|
Loading…
Reference in New Issue
Block a user