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) => ( |
|
|
const Empty: React.SFC<EmptyProps> = (props: EmptyProps) => ( |
|
|
<ConfigConsumer> |
|
|
<ConfigConsumer> |
|
|
{({ getPrefixCls }: ConfigConsumerProps) => { |
|
|
{({ getPrefixCls }: ConfigConsumerProps) => { |
|
|
const { className, image, description, children, ...restProps } = props; |
|
|
const { |
|
|
const prefixCls = getPrefixCls('empty', props.prefixCls); |
|
|
className, |
|
|
|
|
|
prefixCls: customizePrefixCls, |
|
|
|
|
|
image, |
|
|
|
|
|
description, |
|
|
|
|
|
children, |
|
|
|
|
|
...restProps |
|
|
|
|
|
} = props; |
|
|
|
|
|
const prefixCls = getPrefixCls('empty', customizePrefixCls); |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<LocaleReceiver componentName="Empty"> |
|
|
<LocaleReceiver componentName="Empty"> |
|
|