const appLayout = (props: LayoutProps) => {
return (
<Layout
sx={
{
'& .RaLayout-appFrame': {
minHeight: '100%',
height: '100%',
margin: 0,
padding: 0
},
'& .RaList-actions': {minHeight: 0, height: '48px'},
'& .RaLayout-content:': { marginTop: 0, marginBottom: 0, padding: 0, minHeight: '100%', height: '100%' },
'& .RaLayout-contentWithSidebar': { margin: 0, padding: 0, minHeight: '100%', height: '100%' },
minHeight: '100%',
height: '100%',
margin: 0,
padding: 0,
}
}
{...props}
appBar={appBar}
menu={useAppMenu}
sidebar={mySidebar}
/>
)
}
运行结果