Skip to content

Commit b8d839b

Browse files
committed
chore: clean up
1 parent 5b9d13d commit b8d839b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/Cell/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,10 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
140140
if (isFixLeft) {
141141
fixedStyle.position = 'sticky';
142142
fixedStyle.left = fixLeft as number;
143-
fixedStyle['--sticky-left'] = `${fixLeft}px`;
144143
}
145144
if (isFixRight) {
146145
fixedStyle.position = 'sticky';
147-
148146
fixedStyle.right = fixRight as number;
149-
fixedStyle['--sticky-right'] = `${fixRight}px`;
150147
}
151148

152149
// ================ RowSpan & ColSpan =================

src/StaticTable/VirtualCell.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ function VirtualCell<RecordType extends { index: number } = any>(
6464
const mergedStyle: React.CSSProperties = {
6565
...cellStyle,
6666
...style,
67-
['--virtual-width' as any]: `${concatColWidth}px`,
67+
flex: `0 0 ${concatColWidth}px`,
68+
width: `${concatColWidth}px`,
6869
marginRight: marginOffset,
6970
pointerEvents: 'auto',
7071
};

0 commit comments

Comments
 (0)