mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 03:59:01 +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}
|
||||
<RcTable<RecordType>
|
||||
{...tableProps}
|
||||
direction={direction}
|
||||
expandable={mergedExpandable}
|
||||
prefixCls={prefixCls}
|
||||
className={classNames({
|
||||
[`${prefixCls}-middle`]: mergedSize === 'middle',
|
||||
[`${prefixCls}-small`]: mergedSize === 'small',
|
||||
[`${prefixCls}-bordered`]: bordered,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
})}
|
||||
data={pageData}
|
||||
rowKey={getRowKey}
|
||||
|
@ -518,6 +518,7 @@
|
||||
background: @table-bg;
|
||||
}
|
||||
|
||||
&-cell-fix-left-first::after,
|
||||
&-cell-fix-left-last::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@ -529,7 +530,8 @@
|
||||
content: '';
|
||||
pointer-events: none;
|
||||
}
|
||||
&-cell-fix-right-first::after {
|
||||
&-cell-fix-right-first::after,
|
||||
&-cell-fix-right-last::after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: -1px;
|
||||
@ -571,6 +573,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.@{table-prefix-cls}-cell-fix-left-first::after,
|
||||
.@{table-prefix-cls}-cell-fix-left-last::after {
|
||||
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%);
|
||||
}
|
||||
}
|
||||
|
@ -127,7 +127,7 @@
|
||||
"rc-slider": "~9.2.1",
|
||||
"rc-steps": "~3.5.0",
|
||||
"rc-switch": "~1.9.0",
|
||||
"rc-table": "~7.2.0",
|
||||
"rc-table": "~7.3.0",
|
||||
"rc-tabs": "~10.0.0",
|
||||
"rc-tooltip": "~4.0.0",
|
||||
"rc-tree": "~3.0.0",
|
||||
|
Loading…
Reference in New Issue
Block a user