diff --git a/packages/form/src/components/List/index.tsx b/packages/form/src/components/List/index.tsx index c6ef1389a6c5..d3b6a97b2f8d 100644 --- a/packages/form/src/components/List/index.tsx +++ b/packages/form/src/components/List/index.tsx @@ -160,6 +160,9 @@ function ProFormList(props: ProFormListProps) { isValidateList = false, emptyListMessage = '列表不能为空', className, + containerClassName, + containerStyle, + readonly, ...rest } = props; @@ -244,7 +247,7 @@ function ProFormList(props: ProFormListProps) { (props: ProFormListProps) { } onAfterRemove?.(index, count); }} - containerClassName={props.containerClassName} - containerStyle={props.containerStyle} + containerClassName={containerClassName} + containerStyle={containerStyle} > {children}