Skip to content

Commit 3d35faf

Browse files
committed
chore: refactor name
1 parent e5c1860 commit 3d35faf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/examples/virtual.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ const Demo = () => {
205205
expandedRowRender: () => 2333,
206206
columnWidth: 60,
207207
}}
208+
onRow={() => ({ className: 'rowed' })}
208209
/>
209210
</div>
210211
);

src/StaticTable/BodyLine.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ const BodyLine = React.forwardRef<HTMLDivElement, BodyLineProps>((props, ref) =>
3434
const rowInfo = useRowInfo(record, rowKey);
3535

3636
// ========================== Expand ==========================
37-
const { supportExpand, expanded } = rowInfo;
37+
const { rowSupportExpand, expanded } = rowInfo;
3838

3939
let expandRowNode: React.ReactElement;
40-
if (supportExpand && expanded) {
40+
if (rowSupportExpand && expanded) {
4141
expandRowNode = <>233</>;
4242
}
4343

@@ -56,7 +56,7 @@ const BodyLine = React.forwardRef<HTMLDivElement, BodyLineProps>((props, ref) =>
5656
const rowNode = (
5757
<div
5858
{...restProps}
59-
ref={supportExpand ? null : ref}
59+
ref={rowSupportExpand ? null : ref}
6060
className={classNames(className, `${prefixCls}-row`, {
6161
[`${prefixCls}-row-extra`]: extra,
6262
})}
@@ -80,7 +80,7 @@ const BodyLine = React.forwardRef<HTMLDivElement, BodyLineProps>((props, ref) =>
8080
</div>
8181
);
8282

83-
if (supportExpand) {
83+
if (rowSupportExpand) {
8484
return (
8585
<div ref={ref}>
8686
{rowNode}

0 commit comments

Comments
 (0)