diff --git a/packages/form/src/components/List/index.tsx b/packages/form/src/components/List/index.tsx index 2572b1400876..c6ef1389a6c5 100644 --- a/packages/form/src/components/List/index.tsx +++ b/packages/form/src/components/List/index.tsx @@ -280,6 +280,8 @@ function ProFormList(props: ProFormListProps) { } onAfterRemove?.(index, count); }} + containerClassName={props.containerClassName} + containerStyle={props.containerStyle} > {children} diff --git a/packages/layout/src/demos/siderMode.tsx b/packages/layout/src/demos/siderMode.tsx index 486e7c606aac..036a8af4125f 100644 --- a/packages/layout/src/demos/siderMode.tsx +++ b/packages/layout/src/demos/siderMode.tsx @@ -3,21 +3,11 @@ import { InfoCircleFilled, QuestionCircleFilled, } from '@ant-design/icons'; -import type { ProSettings } from '@ant-design/pro-components'; -import { - PageContainer, - ProCard, - ProLayout, - SettingDrawer, -} from '@ant-design/pro-components'; +import { PageContainer, ProCard, ProLayout } from '@ant-design/pro-components'; import { useState } from 'react'; import defaultProps from './_defaultProps'; export default () => { - const [settings, setSetting] = useState | undefined>({ - layout: 'side', - }); - const [pathname, setPathname] = useState('/list/sub-page/sub-sub-page1'); return ( @@ -75,7 +65,6 @@ export default () => { {dom} )} - {...settings} > { - document.getElementById('test-pro-layout')} - settings={settings} - onSettingChange={(changeSetting) => { - setSetting(changeSetting); - }} - disableUrlParams={false} - /> ); }; diff --git a/tests/layout/__snapshots__/demo.test.ts.snap b/tests/layout/__snapshots__/demo.test.ts.snap index f696424165a5..84a950309ea1 100644 --- a/tests/layout/__snapshots__/demo.test.ts.snap +++ b/tests/layout/__snapshots__/demo.test.ts.snap @@ -19634,31 +19634,6 @@ exports[`layout demos 📸 renders ./packages/layout/src/demos/siderMode.tsx cor -
- - - -
`;