提交 90966ea1 编写于 作者: A afc163

empty text should be inside spin

上级 57c12fa3
...@@ -618,13 +618,14 @@ let AntTable = React.createClass({ ...@@ -618,13 +618,14 @@ let AntTable = React.createClass({
emptyClass = ' ant-table-empty'; emptyClass = ' ant-table-empty';
} }
let table = ( let table = <div>
<Table {...this.props} <Table {...this.props}
data={data} data={data}
columns={columns} columns={columns}
className={classString} className={classString}
expandIconAsCell={expandIconAsCell} /> expandIconAsCell={expandIconAsCell} />
); {emptyText}
</div>;
if (this.state.loading) { if (this.state.loading) {
// if there is no pagination or no data, the height of spin should decrease by half of pagination // 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) let paginationPatchClass = (this.hasPagination() && data && data.length !== 0)
...@@ -636,7 +637,6 @@ let AntTable = React.createClass({ ...@@ -636,7 +637,6 @@ let AntTable = React.createClass({
return ( return (
<div className={'clearfix' + emptyClass}> <div className={'clearfix' + emptyClass}>
{table} {table}
{emptyText}
{this.renderPagination()} {this.renderPagination()}
</div> </div>
); );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册