You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
1.7 KiB
TypeScript

import type { ComponentInternalInstance as ComponentInstance, PropType as VuePropType } from 'vue';
3 years ago
declare global {
/** vue Instance */
declare type ComponentInternalInstance = ComponentInstance;
/**vue */
declare type PropType<T> = VuePropType<T>;
/**
*
*/
declare interface FieldOption {
key: number;
label: string;
visible: boolean;
children?: Array<FieldOption>;
}
3 years ago
/**
*
*/
declare interface DialogOption {
/**
*
*/
title?: string;
/**
*
*/
visible: boolean;
}
3 years ago
declare interface UploadOption {
/** 设置上传的请求头部 */
headers: { [key: string]: any };
3 years ago
/** 上传的地址 */
url: string;
}
3 years ago
/**
*
*/
declare interface ImportOption extends UploadOption {
/** 是否显示弹出层 */
open: boolean;
/** 弹出层标题 */
title: string;
/** 是否禁用上传 */
isUploading: boolean;
3 years ago
/** 其他参数 */
[key: string]: any;
}
/**
*
*/
declare interface DictDataOption {
label: string;
value: string;
elTagType?: ElTagType;
elTagClass?: string;
}
3 years ago
declare interface BaseEntity {
createBy?: any;
createDept?: any;
createTime?: string;
updateBy?: any;
updateTime?: any;
}
3 years ago
/**
*
* T :
* D :
*/
declare interface PageData<T, D> {
form: T;
queryParams: D;
rules: ElFormRules;
}
/**
*
*/
declare interface PageQuery {
pageNum: number;
pageSize: number;
}
3 years ago
}
export {};