Skip to content

Commit

Permalink
fix: 修复d.ts某些地方飘红的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Oct 28, 2022
1 parent 86b5c1a commit 17f5503
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fast-admin/fs-admin-antdv
Submodule fs-admin-antdv updated 1 files
+3 −0 vite.config.ts
23 changes: 23 additions & 0 deletions packages/fast-crud/src/d.ts/crud.ts
Expand Up @@ -12,31 +12,37 @@ export type PageQuery = {
page?: any;
form?: any;
sort?: any;
[key: string]: any;
};

export type PageRes = {
currentPage?: number;
pageSize?: number;
total?: number;
records?: Array<object>;
[key: string]: any;
};

export type EditReq = {
form?: any;
row?: any;
[key: string]: any;
};

export type AddReq = {
form?: any;
[key: string]: any;
};

export type DelReq = {
row?: any;
[key: string]: any;
};

export type InfoReq = {
mode?: string;
row?: any;
[key: string]: any;
};

/**
Expand All @@ -50,6 +56,7 @@ export type RequestProp = {
addRequest?: (req: AddReq) => Promise<any>;
delRequest?: (req: DelReq) => Promise<any>;
infoRequest?: (req: InfoReq) => Promise<any>;
[key: string]: any;
};
/**
* 组件配置
Expand Down Expand Up @@ -137,6 +144,8 @@ export type RemoveProps = {
* @param context
*/
onRemoved?: (context) => Promise<any>;

[key: string]: any;
};
/**
* 表格配置
Expand Down Expand Up @@ -188,6 +197,11 @@ export type FormWrapperProps = {
* @param opts
*/
onClosed?: (opts) => void;

/**
* 对应对话框组件的配置
*/
[key: string]: any;
};
/**
* 表单分组-组配置
Expand Down Expand Up @@ -234,6 +248,7 @@ export type FormGroupProps = {
groups?: {
[key: string]: FormGroupItemProps;
};
[key: string]: any;
};
/**
* 表单配置
Expand Down Expand Up @@ -317,6 +332,8 @@ export type FormItemHelperProps = {
* [a|el|n]-tooltip配置
*/
tooltip?: object;

[key: string]: any;
};
/**
* 表单字段配置
Expand Down Expand Up @@ -351,6 +368,8 @@ export type FormItemProps = {
* 是否是空白占位栏
*/
blank?: boolean;

[key: string]: any;
};

/**
Expand All @@ -373,6 +392,8 @@ export type ToolbarProps = {
*/
[key: string]: ButtonProps;
};

[key: string]: any;
};

/**
Expand Down Expand Up @@ -421,6 +442,8 @@ export type ActionbarProps = {
buttons?: {
[key: string]: ButtonProps;
};

[key: string]: any;
};
/**
* 查询框配置
Expand Down

0 comments on commit 17f5503

Please sign in to comment.