2024-02-05 12:01:27 +08:00
|
|
|
export interface Pagination {
|
|
|
|
|
current: number;
|
|
|
|
|
pageSize: number;
|
2024-04-25 19:06:24 +08:00
|
|
|
total: number;
|
2024-02-05 12:01:27 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface BaseState {
|
|
|
|
|
pagination: Pagination;
|
2024-02-06 18:45:20 +08:00
|
|
|
searchString: string;
|
2024-02-05 12:01:27 +08:00
|
|
|
}
|
2024-04-08 19:13:45 +08:00
|
|
|
|
|
|
|
|
export interface IModalProps<T> {
|
|
|
|
|
showModal?(): void;
|
|
|
|
|
hideModal(): void;
|
2024-07-30 16:55:00 +08:00
|
|
|
visible?: boolean;
|
2024-04-08 19:13:45 +08:00
|
|
|
loading?: boolean;
|
2024-04-26 17:22:23 +08:00
|
|
|
onOk?(payload?: T): Promise<any> | void;
|
2024-04-08 19:13:45 +08:00
|
|
|
}
|