diff --git a/components/table/style/index.less b/components/table/style/index.less index b13c7c01df..cc26a59533 100644 --- a/components/table/style/index.less +++ b/components/table/style/index.less @@ -734,54 +734,6 @@ } } -.@{table-prefix-cls}-custom-column { - col { - width: auto !important; - min-width: auto !important; - display: none; - } - - .@{table-prefix-cls}-thead { - .@{table-prefix-cls}-row { - width: 100%; - display: flex; - justify-content: space-between; - - th { - overflow: hidden; - } - } - } - - .@{table-prefix-cls}-tbody { - .@{table-prefix-cls}-row { - width: 100%; - display: flex; - justify-content: space-between; - - td { - overflow: hidden; - } - - .nz-disable-td { - width: 100%; - } - } - } - - .ant-table-fixed { - tr { - .ant-table-cell-fix-left-last, .ant-table-cell-fix-right-first { - overflow: visible; - } - } - - .@{table-prefix-cls}-row { - width: 100%; - } - } -} - @media all and (-ms-high-contrast: none) { .@{table-prefix-cls} { &-ping-left { diff --git a/components/table/style/patch.less b/components/table/style/patch.less index a8a6ca2e15..f00e82e7a1 100644 --- a/components/table/style/patch.less +++ b/components/table/style/patch.less @@ -137,3 +137,50 @@ cdk-virtual-scroll-viewport.ant-table-body { } } +.@{table-prefix-cls}-custom-column { + col { + width: auto !important; + min-width: auto !important; + display: none; + } + + .@{table-prefix-cls}-thead { + .@{table-prefix-cls}-row, tr { + width: 100%; + display: flex; + justify-content: space-between; + + th { + overflow: hidden; + } + } + } + + .@{table-prefix-cls}-tbody { + .@{table-prefix-cls}-row, tr { + width: 100%; + display: flex; + justify-content: space-between; + + td { + overflow: hidden; + } + + .nz-disable-td { + width: 100%; + } + } + } + + .ant-table-fixed { + tr { + .ant-table-cell-fix-left-last, .ant-table-cell-fix-right-first { + overflow: visible; + } + } + + .@{table-prefix-cls}-row { + width: 100%; + } + } +} \ No newline at end of file