refactor(tables): share parent column grid in expandable child rows

- llmodels/model-routes/cluster child rows use ExpandedRowGrid + Cell
  (auto-flow spans, no parent-key/grid-line math)
- define --seal-table-row-min-height token in global.less
- routes created_at column: span -> fixed width 180
This commit is contained in:
jialin
2026-07-16 13:09:18 +08:00
committed by jialin
parent 938aef6c26
commit 67e2d914f4
10 changed files with 255 additions and 212 deletions
@@ -17,6 +17,9 @@ interface InstanceItemProps {
workerList: WorkerListItem[];
modelData?: any;
currentExpanded?: string;
gridTemplate?: string;
prefixWidth?: number;
columns?: any[];
handleChildSelect: (val: string, item: ModelInstanceListItem) => void;
}
@@ -25,6 +28,9 @@ const Instances: React.FC<InstanceItemProps> = ({
workerList,
modelData,
currentExpanded,
gridTemplate,
prefixWidth,
columns,
handleChildSelect
}) => {
const [firstLoad, setFirstLoad] = React.useState(true);
@@ -55,6 +61,9 @@ const Instances: React.FC<InstanceItemProps> = ({
instanceData={item}
defaultOpenId={firstLoad ? defaultOpenId : ''}
handleChildSelect={handleChildSelect}
gridTemplate={gridTemplate}
prefixWidth={prefixWidth}
columns={columns}
></InstanceItem>
);
})}