feat: init
This commit is contained in:
18
src/types/table.ts
Normal file
18
src/types/table.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export interface TableItemType {
|
||||
prop: string;
|
||||
label: string;
|
||||
width: number;
|
||||
image?: boolean;
|
||||
actions?: actionsItemType[];
|
||||
aligen?: string;
|
||||
formatter?: ItemFuncType;
|
||||
getType?: ItemFuncType;
|
||||
}
|
||||
interface ItemFuncType {
|
||||
(row: any): any;
|
||||
}
|
||||
interface actionsItemType {
|
||||
name: string;
|
||||
func: any;
|
||||
type?: any;
|
||||
}
|
||||
6
src/types/user.ts
Normal file
6
src/types/user.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// 用户的类型声明文件
|
||||
export interface IUser {
|
||||
name: string;
|
||||
age: number;
|
||||
}
|
||||
// ...
|
||||
Reference in New Issue
Block a user