2023-06-06 20:54:52 +08:00
|
|
|
import type { ComponentInternalInstance as ComponentInstance, PropType as VuePropType } from 'vue';
|
|
|
|
|
2023-04-02 01:01:56 +08:00
|
|
|
declare global {
|
2023-06-06 20:54:52 +08:00
|
|
|
/** vue Instance */
|
|
|
|
declare type ComponentInternalInstance = ComponentInstance;
|
|
|
|
/**vue */
|
|
|
|
declare type PropType<T> = VuePropType<T>;
|
|
|
|
|
2023-04-03 00:05:09 +08:00
|
|
|
/**
|
|
|
|
* 界面字段隐藏属性
|
|
|
|
*/
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface FieldOption {
|
2023-04-03 00:05:09 +08:00
|
|
|
key: number;
|
|
|
|
label: string;
|
|
|
|
visible: boolean;
|
2023-09-28 14:58:34 +08:00
|
|
|
children: Array<FieldOption>;
|
2023-04-03 00:05:09 +08:00
|
|
|
}
|
2023-04-02 01:01:56 +08:00
|
|
|
|
2023-04-03 00:05:09 +08:00
|
|
|
/**
|
|
|
|
* 弹窗属性
|
|
|
|
*/
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface DialogOption {
|
2023-04-03 00:05:09 +08:00
|
|
|
/**
|
|
|
|
* 弹窗标题
|
|
|
|
*/
|
|
|
|
title?: string;
|
|
|
|
/**
|
|
|
|
* 是否显示
|
|
|
|
*/
|
|
|
|
visible: boolean;
|
|
|
|
}
|
2023-04-02 01:01:56 +08:00
|
|
|
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface UploadOption {
|
2023-04-03 00:05:09 +08:00
|
|
|
/** 设置上传的请求头部 */
|
|
|
|
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
|
|
|
/**
|
|
|
|
* 导入属性
|
|
|
|
*/
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface ImportOption extends UploadOption {
|
2023-04-03 00:05:09 +08:00
|
|
|
/** 是否显示弹出层 */
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 字典数据 数据配置
|
|
|
|
*/
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface DictDataOption {
|
2023-04-03 00:05:09 +08:00
|
|
|
label: string;
|
|
|
|
value: string;
|
|
|
|
elTagType?: ElTagType;
|
|
|
|
elTagClass?: string;
|
|
|
|
}
|
2023-04-02 01:01:56 +08:00
|
|
|
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface BaseEntity {
|
2023-04-03 00:05:09 +08:00
|
|
|
createBy?: any;
|
2023-04-05 20:12:03 +08:00
|
|
|
createDept?: any;
|
2023-04-03 00:05:09 +08:00
|
|
|
createTime?: string;
|
|
|
|
updateBy?: any;
|
|
|
|
updateTime?: any;
|
|
|
|
}
|
2023-04-02 01:01:56 +08:00
|
|
|
|
2023-04-03 00:05:09 +08:00
|
|
|
/**
|
|
|
|
* 分页数据
|
|
|
|
* T : 表单数据
|
|
|
|
* D : 查询参数
|
|
|
|
*/
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface PageData<T, D> {
|
2023-04-03 00:05:09 +08:00
|
|
|
form: T;
|
|
|
|
queryParams: D;
|
2023-06-06 20:54:52 +08:00
|
|
|
rules: ElFormRules;
|
2023-04-03 00:05:09 +08:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 分页查询参数
|
|
|
|
*/
|
2023-06-06 20:54:52 +08:00
|
|
|
declare interface PageQuery {
|
2023-04-03 00:05:09 +08:00
|
|
|
pageNum: number;
|
|
|
|
pageSize: number;
|
|
|
|
}
|
2023-04-02 01:01:56 +08:00
|
|
|
}
|
|
|
|
export {};
|