mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-10 19:19:20 +08:00
chore: Adjust table col className priority (#23914)
* adjust col class * update snapshot
This commit is contained in:
parent
2961dda311
commit
701f35d0eb
@ -28,7 +28,7 @@ exports[`Table.rowSelection fix expand on th left when selection column fixed on
|
|||||||
class="ant-table-expand-icon-col"
|
class="ant-table-expand-icon-col"
|
||||||
/>
|
/>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -359,7 +359,7 @@ exports[`Table.rowSelection fix selection column on the left 1`] = `
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -643,7 +643,7 @@ exports[`Table.rowSelection fix selection column on the left when any other colu
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -958,7 +958,7 @@ exports[`Table.rowSelection should support getPopupContainer 1`] = `
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -1285,7 +1285,7 @@ exports[`Table.rowSelection should support getPopupContainer from ConfigProvider
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -1612,7 +1612,7 @@ exports[`Table.rowSelection use column as selection column when key is \`selecti
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
|
@ -2404,7 +2404,7 @@ exports[`renders ./components/table/demo/dynamic-settings.md correctly 1`] = `
|
|||||||
class="ant-table-expand-icon-col"
|
class="ant-table-expand-icon-col"
|
||||||
/>
|
/>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -4961,7 +4961,7 @@ exports[`renders ./components/table/demo/expand-children.md correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
<col />
|
<col />
|
||||||
<col
|
<col
|
||||||
@ -11920,7 +11920,7 @@ exports[`renders ./components/table/demo/row-selection.md correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -12267,7 +12267,7 @@ exports[`renders ./components/table/demo/row-selection-and-operation.md correctl
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -12854,7 +12854,7 @@ exports[`renders ./components/table/demo/row-selection-custom.md correctly 1`] =
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -13468,7 +13468,7 @@ exports[`renders ./components/table/demo/row-selection-custom-debug.md correctly
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
|
@ -442,7 +442,7 @@ export default function useSelection<RecordType>(
|
|||||||
title: rowSelection.columnTitle || title,
|
title: rowSelection.columnTitle || title,
|
||||||
render: renderSelectionCell,
|
render: renderSelectionCell,
|
||||||
[INTERNAL_COL_DEFINE]: {
|
[INTERNAL_COL_DEFINE]: {
|
||||||
className: `${prefixCls}-selection-column`,
|
className: `${prefixCls}-selection-col`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -354,17 +354,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ========================== Selections ==========================
|
// ========================== Selections ==========================
|
||||||
colgroup {
|
.@{table-prefix-cls}-selection-col {
|
||||||
> col.@{table-prefix-cls}-selection-col {
|
|
||||||
width: @table-selection-column-width;
|
width: @table-selection-column-width;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
&-selection-column,
|
|
||||||
table tr th&-selection-column,
|
table tr th&-selection-column,
|
||||||
table tr td&-selection-column {
|
table tr td&-selection-column {
|
||||||
width: @table-selection-column-width;
|
|
||||||
min-width: @table-selection-column-width;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.@{ant-prefix}-radio-wrapper {
|
.@{ant-prefix}-radio-wrapper {
|
||||||
|
@ -2245,7 +2245,7 @@ exports[`renders ./components/transfer/demo/table-transfer.md correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
@ -2926,7 +2926,7 @@ exports[`renders ./components/transfer/demo/table-transfer.md correctly 1`] = `
|
|||||||
>
|
>
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col
|
<col
|
||||||
class="ant-table-selection-column"
|
class="ant-table-selection-col"
|
||||||
/>
|
/>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<thead
|
<thead
|
||||||
|
Loading…
Reference in New Issue
Block a user