39 lines
727 B
TypeScript
39 lines
727 B
TypeScript
interface DataProps {
|
|
row: RequestItemsObject;
|
|
rowIndex: number;
|
|
}
|
|
|
|
//ข้อมูล
|
|
interface RequestItemsObject {
|
|
id: string;
|
|
name: string;
|
|
topic: string;
|
|
yearly: number;
|
|
place: string;
|
|
isDate: string | null;
|
|
duration: string;
|
|
department: string;
|
|
numberOrder: string;
|
|
dateOrder: Date;
|
|
startDate: number | null;
|
|
endDate: number | null;
|
|
startDate2: Date | null;
|
|
endDate2: Date | null;
|
|
createdFullName: string;
|
|
createdAt: Date;
|
|
}
|
|
|
|
//columns
|
|
interface Columns {
|
|
[index: number]: {
|
|
name: String;
|
|
align: String;
|
|
label: String;
|
|
sortable: Boolean;
|
|
field: String;
|
|
headerStyle: String;
|
|
style: String;
|
|
};
|
|
}
|
|
|
|
export type { RequestItemsObject, Columns, DataProps };
|