Browse Source

fix prefixCls of empty go to div (#14404)

close #14403
pull/14409/head
zombieJ 6 years ago
committed by GitHub
parent
commit
7ed045ce57
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      components/empty/index.tsx

11
components/empty/index.tsx

@ -19,8 +19,15 @@ export interface EmptyProps {
const Empty: React.SFC<EmptyProps> = (props: EmptyProps) => (
<ConfigConsumer>
{({ 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 (
<LocaleReceiver componentName="Empty">

Loading…
Cancel
Save