zombieJ
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
2 deletions
-
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"> |
|
|
|