mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +08:00
Fix table wrapper float layout, close #4945
This commit is contained in:
parent
626e0c9d1e
commit
c1f3b58b28
@ -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` : ''}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user