mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
fix: FixedColumns issue in rtl (#21914)
* fix: FixedColumns issue in rtl * update rc-table version
This commit is contained in:
parent
8adefd4390
commit
5787f3e8b2
@ -421,13 +421,13 @@ function Table<RecordType extends object = any>(props: TableProps<RecordType>) {
|
|||||||
{topPaginationNode}
|
{topPaginationNode}
|
||||||
<RcTable<RecordType>
|
<RcTable<RecordType>
|
||||||
{...tableProps}
|
{...tableProps}
|
||||||
|
direction={direction}
|
||||||
expandable={mergedExpandable}
|
expandable={mergedExpandable}
|
||||||
prefixCls={prefixCls}
|
prefixCls={prefixCls}
|
||||||
className={classNames({
|
className={classNames({
|
||||||
[`${prefixCls}-middle`]: mergedSize === 'middle',
|
[`${prefixCls}-middle`]: mergedSize === 'middle',
|
||||||
[`${prefixCls}-small`]: mergedSize === 'small',
|
[`${prefixCls}-small`]: mergedSize === 'small',
|
||||||
[`${prefixCls}-bordered`]: bordered,
|
[`${prefixCls}-bordered`]: bordered,
|
||||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
|
||||||
})}
|
})}
|
||||||
data={pageData}
|
data={pageData}
|
||||||
rowKey={getRowKey}
|
rowKey={getRowKey}
|
||||||
|
@ -518,6 +518,7 @@
|
|||||||
background: @table-bg;
|
background: @table-bg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-cell-fix-left-first::after,
|
||||||
&-cell-fix-left-last::after {
|
&-cell-fix-left-last::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -529,7 +530,8 @@
|
|||||||
content: '';
|
content: '';
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
&-cell-fix-right-first::after {
|
&-cell-fix-right-first::after,
|
||||||
|
&-cell-fix-right-last::after {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: -1px;
|
bottom: -1px;
|
||||||
@ -571,6 +573,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.@{table-prefix-cls}-cell-fix-left-first::after,
|
||||||
.@{table-prefix-cls}-cell-fix-left-last::after {
|
.@{table-prefix-cls}-cell-fix-left-last::after {
|
||||||
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
|
box-shadow: inset 10px 0 8px -8px darken(@shadow-color, 5%);
|
||||||
}
|
}
|
||||||
@ -585,7 +588,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.@{table-prefix-cls}-cell-fix-right-first::after {
|
.@{table-prefix-cls}-cell-fix-right-first::after,
|
||||||
|
.@{table-prefix-cls}-cell-fix-right-last::after {
|
||||||
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
|
box-shadow: inset -10px 0 8px -8px darken(@shadow-color, 5%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -127,7 +127,7 @@
|
|||||||
"rc-slider": "~9.2.1",
|
"rc-slider": "~9.2.1",
|
||||||
"rc-steps": "~3.5.0",
|
"rc-steps": "~3.5.0",
|
||||||
"rc-switch": "~1.9.0",
|
"rc-switch": "~1.9.0",
|
||||||
"rc-table": "~7.2.0",
|
"rc-table": "~7.3.0",
|
||||||
"rc-tabs": "~10.0.0",
|
"rc-tabs": "~10.0.0",
|
||||||
"rc-tooltip": "~4.0.0",
|
"rc-tooltip": "~4.0.0",
|
||||||
"rc-tree": "~3.0.0",
|
"rc-tree": "~3.0.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user