Commit d99a90ba by zhaochengxiang

模型行展开

parent fdc31de8
......@@ -174,11 +174,11 @@ function FC<Row extends RowData, SR, K extends React.Key = React.Key>(props: Dat
const cols = useMemo(() => {
if (expandRow && checkable) {
const cols: readonly Column<Row, SR>[] = [
{ ...SelectColumn, key: 'select', frozen: false },
// { ...SelectColumn, key: 'select', frozen: false },
getExpandingCol<Row, SR>({
colSpan: () => columns.length+1, expand: expandRow, expandable: rowExpandable
colSpan: () => columns.length+2, expand: expandRow, expandable: rowExpandable
}),
// { ...SelectColumn, key: 'select', frozen: false },
{ ...SelectColumn, key: 'select', frozen: false },
...columns,
]
return cols
......
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