Fix table wrapper float layout, close #4945

This commit is contained in:
afc163 2017-02-20 11:35:01 +08:00
parent 626e0c9d1e
commit c1f3b58b28
2 changed files with 5 additions and 1 deletions

View File

@ -879,7 +879,7 @@ export default class Table<T> extends React.Component<TableProps<T>, any> {
? `${prefixCls}-with-pagination` : `${prefixCls}-without-pagination`;
return (
<div className={`${className} clearfix`} style={style}>
<div className={classNames(`${prefixCls}-wrapper`, className)} style={style}>
<Spin
spinning={loading}
className={loading ? `${paginationPatchClass} ${prefixCls}-spin-holder` : ''}

View File

@ -4,6 +4,10 @@
@table-prefix-cls: ~"@{ant-prefix}-table";
@table-head-background-color: @background-color-base;
.@{table-prefix-cls}-wrapper {
.clearfix;
}
.@{table-prefix-cls} {
font-size: @font-size-base;
color: @text-color;