diff --git a/components/result/index.jsx b/components/result/index.jsx index a15307288..77953a754 100644 --- a/components/result/index.jsx +++ b/components/result/index.jsx @@ -35,7 +35,7 @@ export const ResultProps = { extra: PropTypes.any, }; -const renderIcon = (h, prefixCls, { status, icon }) => { +const renderIcon = (prefixCls, { status, icon }) => { if (ExceptionStatus.includes(`${status}`)) { const SVGComponent = ExceptionMap[status]; return ( @@ -49,8 +49,7 @@ const renderIcon = (h, prefixCls, { status, icon }) => { return
{iconNode}
; }; -const renderExtra = (h, prefixCls, extra) => - extra &&
{extra}
; +const renderExtra = (prefixCls, extra) => extra &&
{extra}
; const Result = { name: 'AResult', @@ -72,11 +71,11 @@ const Result = { return (
- {renderIcon(h, prefixCls, { status, icon })} + {renderIcon(prefixCls, { status, icon })}
{title}
{subTitle &&
{subTitle}
} {this.$slots.default &&
{this.$slots.default()}
} - {renderExtra(h, prefixCls, extra)} + {renderExtra(prefixCls, extra)}
); },