mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 19:19:20 +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`;
|
? `${prefixCls}-with-pagination` : `${prefixCls}-without-pagination`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={`${className} clearfix`} style={style}>
|
<div className={classNames(`${prefixCls}-wrapper`, className)} style={style}>
|
||||||
<Spin
|
<Spin
|
||||||
spinning={loading}
|
spinning={loading}
|
||||||
className={loading ? `${paginationPatchClass} ${prefixCls}-spin-holder` : ''}
|
className={loading ? `${paginationPatchClass} ${prefixCls}-spin-holder` : ''}
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
@table-prefix-cls: ~"@{ant-prefix}-table";
|
@table-prefix-cls: ~"@{ant-prefix}-table";
|
||||||
@table-head-background-color: @background-color-base;
|
@table-head-background-color: @background-color-base;
|
||||||
|
|
||||||
|
.@{table-prefix-cls}-wrapper {
|
||||||
|
.clearfix;
|
||||||
|
}
|
||||||
|
|
||||||
.@{table-prefix-cls} {
|
.@{table-prefix-cls} {
|
||||||
font-size: @font-size-base;
|
font-size: @font-size-base;
|
||||||
color: @text-color;
|
color: @text-color;
|
||||||
|
Loading…
Reference in New Issue
Block a user