feat: benchmark detail actions

This commit is contained in:
jialin
2026-02-01 22:56:36 +08:00
parent 0849a2f114
commit 9796233897
12 changed files with 268 additions and 103 deletions
@@ -10,6 +10,7 @@ type AddModalProps = {
action: PageActionType;
open: boolean;
currentData?: ListItem; // Used when action is EDIT
clusterList?: Global.BaseOption<number>[];
onOk: (values: FormData) => void;
onCancel: () => void;
};
@@ -18,6 +19,7 @@ const AddBenchmark: React.FC<AddModalProps> = ({
action,
open,
currentData,
clusterList,
onOk,
onCancel
}) => {
@@ -51,6 +53,7 @@ const AddBenchmark: React.FC<AddModalProps> = ({
action={action}
open={open}
currentData={currentData}
clusterList={clusterList}
onFinish={handleOk}
/>
</FormDrawer>