54 lines
1.5 KiB
TypeScript
54 lines
1.5 KiB
TypeScript
import React from 'react';
|
|
import { AlgorithmTableProps } from './components/algorithmTable/AlgorithmTable';
|
|
import { TimeTemplateTableProps } from './components/timeTemplateTable/TimeTemplateTable';
|
|
export interface AlgorithmConfigProps {
|
|
onAddAlgorithm?: () => void;
|
|
/**
|
|
* 单选的图片数据
|
|
*/
|
|
drawData?: {
|
|
imageKey: string;
|
|
odRect?: {
|
|
x: number;
|
|
y: number;
|
|
w: number;
|
|
h: number;
|
|
};
|
|
score?: string;
|
|
time?: string;
|
|
};
|
|
/**
|
|
* 单选状态圈选后的监听事件
|
|
*/
|
|
drawListener?: (data: any) => void;
|
|
algorithmTableDataSource?: {
|
|
id: string;
|
|
templateName: string;
|
|
operatingCycle: string;
|
|
algorithmOccupied: number;
|
|
}[];
|
|
timeTemplateDataSource?: {
|
|
id: string;
|
|
templateName: string;
|
|
operatingCycle: string;
|
|
arrangeWeek: string;
|
|
algorithmOccupied: string;
|
|
}[];
|
|
boxList: {
|
|
id: string;
|
|
name: string;
|
|
}[];
|
|
algorithmTableProps?: AlgorithmTableProps<any>;
|
|
timeTemplateTableProps?: TimeTemplateTableProps<any>;
|
|
selectedKey?: string;
|
|
rowKey?: string;
|
|
type: AlgorithmTableProps<any>['tableType'];
|
|
onSelect?: (key: string, info?: any) => void;
|
|
}
|
|
export interface AlgorithmConfigRef {
|
|
draw: () => void;
|
|
cancelDraw: () => void;
|
|
}
|
|
declare const AlgorithmConfig: React.ForwardRefExoticComponent<AlgorithmConfigProps & React.RefAttributes<AlgorithmConfigRef>>;
|
|
export default AlgorithmConfig;
|