diff --git a/src/components/center-popup/center-popup.tsx b/src/components/center-popup/center-popup.tsx index 7277a389c5..94a1ac63d8 100644 --- a/src/components/center-popup/center-popup.tsx +++ b/src/components/center-popup/center-popup.tsx @@ -16,6 +16,8 @@ import { PopupBaseProps, } from '../popup/popup-base-props' +const classPrefix = 'adm-center-popup' + export type CenterPopupProps = PopupBaseProps & PropsWithChildren<{ // These props currently are only used internally. They are not exported to users: @@ -72,7 +74,7 @@ export const CenterPopup: FC = p => { const body = (
{props.children} @@ -84,7 +86,7 @@ export const CenterPopup: FC = p => { withNativeProps( props,
= p => { } }} style={props.maskStyle} - className={classNames('adm-center-popup-mask', props.maskClassName)} + className={classNames(`${classPrefix}-mask`, props.maskClassName)} disableBodyScroll={false} stopPropagation={props.stopPropagation} /> )}
@@ -116,7 +118,7 @@ export const CenterPopup: FC = p => { {props.showCloseButton && ( {