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

empty text should be inside spin

上级 57c12fa3
......@@ -618,13 +618,14 @@ let AntTable = React.createClass({
emptyClass = ' ant-table-empty';
}
let table = (
let table = <div>
<Table {...this.props}
data={data}
columns={columns}
className={classString}
expandIconAsCell={expandIconAsCell} />
);
{emptyText}
</div>;
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 (
<div className={'clearfix' + emptyClass}>
{table}
{emptyText}
{this.renderPagination()}
</div>
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册