Commit 5e1f1627 by zhaochengxiang

bug fix

parent 8af46db1
...@@ -109,7 +109,7 @@ function FC<RowType extends object = any>({ width, maxHeight, pageSize, pageNum, ...@@ -109,7 +109,7 @@ function FC<RowType extends object = any>({ width, maxHeight, pageSize, pageNum,
setTableWidth(size?.width) setTableWidth(size?.width)
}} }}
> >
<Table<RowType> <Table
ref={ref} ref={ref}
className="ssetable" className="ssetable"
size='middle' size='middle'
...@@ -131,7 +131,7 @@ function FC<RowType extends object = any>({ width, maxHeight, pageSize, pageNum, ...@@ -131,7 +131,7 @@ function FC<RowType extends object = any>({ width, maxHeight, pageSize, pageNum,
}} }}
onRow={(record, index) => { onRow={(record, index) => {
return { return {
id: record.id, id: record?.id,
onClick: event => { onClick: event => {
onRowClick?.(event, record) onRowClick?.(event, record)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment