From 75518241d6917d5166b933667a8954e08af9e474 Mon Sep 17 00:00:00 2001 From: niko <644506165@qq.com> Date: Wed, 30 Aug 2017 15:16:48 +0800 Subject: [PATCH] List optimize (#7391) * change spin size to large * fixed list loading --- components/list/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/list/index.tsx b/components/list/index.tsx index b3764f27e2..cbc7e11634 100644 --- a/components/list/index.tsx +++ b/components/list/index.tsx @@ -52,6 +52,7 @@ export default class List extends Component { pagination = false, prefixCls = 'ant-list', grid, + ...rest, } = this.props; const classString = classNames(prefixCls, className, { @@ -82,7 +83,7 @@ export default class List extends Component { const loadingContent = (
- +
); @@ -93,7 +94,7 @@ export default class List extends Component { ) : children; return ( -
+
{loading && loadingContent} {!loading && childrenContent} {!loading && showLoadMore && moreContent}