mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
parent
1e7b3de159
commit
7ed045ce57
@ -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…
Reference in New Issue
Block a user