mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
fork refine
This commit is contained in:
3
packages/antd/src/interfaces/field.ts
Normal file
3
packages/antd/src/interfaces/field.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export type FieldProps<T> = {
|
||||
value: T;
|
||||
};
|
||||
23
packages/antd/src/interfaces/index.ts
Normal file
23
packages/antd/src/interfaces/index.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { IResourceItem } from "@refinedev/core";
|
||||
|
||||
export type BaseRecord = {
|
||||
id?: string;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
[key: string]: any;
|
||||
};
|
||||
export interface Option {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export type ITreeMenu = IMenuItem & {
|
||||
children: ITreeMenu[];
|
||||
};
|
||||
|
||||
export type IMenuItem = IResourceItem & {
|
||||
key: string;
|
||||
route: string;
|
||||
};
|
||||
|
||||
export * from "./field";
|
||||
export * from "./upload";
|
||||
9
packages/antd/src/interfaces/upload.ts
Normal file
9
packages/antd/src/interfaces/upload.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export interface UploadedFile {
|
||||
uid: string;
|
||||
name: string;
|
||||
url: string;
|
||||
type: string;
|
||||
size: number;
|
||||
percent: number;
|
||||
status: "error" | "success" | "done" | "uploading" | "removed";
|
||||
}
|
||||
Reference in New Issue
Block a user