fix: FixedColumns issue in rtl (#21914)

* fix: FixedColumns issue in rtl

* update rc-table version
This commit is contained in:
Saeed Rahimi 2020-03-10 16:00:31 +03:30 committed by GitHub
parent 8adefd4390
commit 5787f3e8b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 4 deletions

View File

@ -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}

View File

@ -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%);
}
}

View File

@ -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",