84 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-04-02 01:01:56 +08:00
import { FormRules } from 'element-plus';
declare global {
2023-04-03 00:05:09 +08:00
/**
*
*/
interface FieldOption {
key: number;
label: string;
visible: boolean;
}
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
/**
*
*/
interface DialogOption {
/**
*
*/
title?: string;
/**
*
*/
visible: boolean;
}
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
interface UploadOption {
/** 设置上传的请求头部 */
headers: { [key: string]: any };
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
/** 上传的地址 */
url: string;
}
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
/**
*
*/
interface ImportOption extends UploadOption {
/** 是否显示弹出层 */
open: boolean;
/** 弹出层标题 */
title: string;
/** 是否禁用上传 */
isUploading: boolean;
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
/** 其他参数 */
[key: string]: any;
}
/**
*
*/
interface DictDataOption {
label: string;
value: string;
elTagType?: ElTagType;
elTagClass?: string;
}
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
interface BaseEntity {
createBy?: any;
createTime?: string;
updateBy?: any;
updateTime?: any;
}
2023-04-02 01:01:56 +08:00
2023-04-03 00:05:09 +08:00
/**
*
* T : 表单数据
* D : 查询参数
*/
interface PageData<T, D> {
form: T;
queryParams: D;
rules: FormRules;
}
/**
*
*/
interface PageQuery {
pageNum: number;
pageSize: number;
}
2023-04-02 01:01:56 +08:00
}
export {};