| | |
| | | import { FormRules } from 'element-plus'; |
| | | import type { ComponentInternalInstance as ComponentInstance, PropType as VuePropType } from 'vue'; |
| | | |
| | | declare global { |
| | | /** vue Instance */ |
| | | declare type ComponentInternalInstance = ComponentInstance; |
| | | /**vue */ |
| | | declare type PropType<T> = VuePropType<T>; |
| | | |
| | | /** |
| | | * 界面字段隐藏属性 |
| | | */ |
| | | interface FieldOption { |
| | | declare interface FieldOption { |
| | | key: number; |
| | | label: string; |
| | | visible: boolean; |
| | |
| | | /** |
| | | * 弹窗属性 |
| | | */ |
| | | interface DialogOption { |
| | | declare interface DialogOption { |
| | | /** |
| | | * 弹窗标题 |
| | | */ |
| | |
| | | visible: boolean; |
| | | } |
| | | |
| | | interface UploadOption { |
| | | declare interface UploadOption { |
| | | /** 设置上传的请求头部 */ |
| | | headers: { [key: string]: any }; |
| | | |
| | |
| | | /** |
| | | * 导入属性 |
| | | */ |
| | | interface ImportOption extends UploadOption { |
| | | declare interface ImportOption extends UploadOption { |
| | | /** 是否显示弹出层 */ |
| | | open: boolean; |
| | | /** 弹出层标题 */ |
| | |
| | | /** |
| | | * 字典数据 数据配置 |
| | | */ |
| | | interface DictDataOption { |
| | | declare interface DictDataOption { |
| | | label: string; |
| | | value: string; |
| | | elTagType?: ElTagType; |
| | | elTagClass?: string; |
| | | } |
| | | |
| | | interface BaseEntity { |
| | | declare interface BaseEntity { |
| | | createBy?: any; |
| | | createDept?: any; |
| | | createTime?: string; |
| | |
| | | * T : 表单数据 |
| | | * D : 查询参数 |
| | | */ |
| | | interface PageData<T, D> { |
| | | declare interface PageData<T, D> { |
| | | form: T; |
| | | queryParams: D; |
| | | rules: FormRules; |
| | | rules: ElFormRules; |
| | | } |
| | | /** |
| | | * 分页查询参数 |
| | | */ |
| | | interface PageQuery { |
| | | declare interface PageQuery { |
| | | pageNum: number; |
| | | pageSize: number; |
| | | } |