From 90966ea1c9990d0f5278b22f92f118b78dfc9071 Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 5 Nov 2015 20:02:49 +0800 Subject: [PATCH] empty text should be inside spin --- components/table/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/table/index.jsx b/components/table/index.jsx index cd65b729af..e6f22ce268 100644 --- a/components/table/index.jsx +++ b/components/table/index.jsx @@ -618,13 +618,14 @@ let AntTable = React.createClass({ emptyClass = ' ant-table-empty'; } - let table = ( + let table =
- ); + {emptyText} + ; if (this.state.loading) { // if there is no pagination or no data, the height of spin should decrease by half of pagination let paginationPatchClass = (this.hasPagination() && data && data.length !== 0) @@ -636,7 +637,6 @@ let AntTable = React.createClass({ return (
{table} - {emptyText} {this.renderPagination()}
); -- GitLab