diff --git a/components/empty/index.tsx b/components/empty/index.tsx index 923e6a3deb..91d94666f5 100644 --- a/components/empty/index.tsx +++ b/components/empty/index.tsx @@ -19,8 +19,15 @@ export interface EmptyProps { const Empty: React.SFC = (props: EmptyProps) => ( {({ getPrefixCls }: ConfigConsumerProps) => { - const { className, image, description, children, ...restProps } = props; - const prefixCls = getPrefixCls('empty', props.prefixCls); + const { + className, + prefixCls: customizePrefixCls, + image, + description, + children, + ...restProps + } = props; + const prefixCls = getPrefixCls('empty', customizePrefixCls); return (