兰宝车间质量管理系统-前端
疯狂的狮子Li
2023-04-03 1595cb282aab5399862fac6406b5de550863e3b6
src/types/global.d.ts
@@ -1,83 +1,83 @@
import { FormRules } from 'element-plus';
declare global {
   /**
    * 界面字段隐藏属性
    */
   interface FieldOption {
      key: number;
      label: string;
      visible: boolean;
   }
  /**
   * 界面字段隐藏属性
   */
  interface FieldOption {
    key: number;
    label: string;
    visible: boolean;
  }
   /**
    * 弹窗属性
    */
   interface DialogOption {
      /**
       * 弹窗标题
       */
      title?: string;
      /**
       * 是否显示
       */
      visible: boolean;
   }
  /**
   * 弹窗属性
   */
  interface DialogOption {
    /**
     * 弹窗标题
     */
    title?: string;
    /**
     * 是否显示
     */
    visible: boolean;
  }
   interface UploadOption {
      /** 设置上传的请求头部 */
      headers: { [key: string]: any };
  interface UploadOption {
    /** 设置上传的请求头部 */
    headers: { [key: string]: any };
      /** 上传的地址 */
      url: string;
   }
    /** 上传的地址 */
    url: string;
  }
   /**
    * 导入属性
    */
   interface ImportOption extends UploadOption {
      /** 是否显示弹出层 */
      open: boolean;
      /** 弹出层标题 */
      title: string;
      /** 是否禁用上传 */
      isUploading: boolean;
  /**
   * 导入属性
   */
  interface ImportOption extends UploadOption {
    /** 是否显示弹出层 */
    open: boolean;
    /** 弹出层标题 */
    title: string;
    /** 是否禁用上传 */
    isUploading: boolean;
      /** 其他参数 */
      [key: string]: any;
   }
   /**
    * 字典数据  数据配置
    */
   interface DictDataOption {
      label: string;
      value: string;
      elTagType?: ElTagType;
      elTagClass?: string;
   }
    /** 其他参数 */
    [key: string]: any;
  }
  /**
   * 字典数据  数据配置
   */
  interface DictDataOption {
    label: string;
    value: string;
    elTagType?: ElTagType;
    elTagClass?: string;
  }
   interface BaseEntity {
      createBy?: any;
      createTime?: string;
      updateBy?: any;
      updateTime?: any;
   }
  interface BaseEntity {
    createBy?: any;
    createTime?: string;
    updateBy?: any;
    updateTime?: any;
  }
   /**
    * 分页数据
    * T : 表单数据
    * D : 查询参数
    */
   interface PageData<T, D> {
      form: T;
      queryParams: D;
      rules: FormRules;
   }
   /**
    * 分页查询参数
    */
   interface PageQuery {
      pageNum: number;
      pageSize: number;
   }
  /**
   * 分页数据
   * T : 表单数据
   * D : 查询参数
   */
  interface PageData<T, D> {
    form: T;
    queryParams: D;
    rules: FormRules;
  }
  /**
   * 分页查询参数
   */
  interface PageQuery {
    pageNum: number;
    pageSize: number;
  }
}
export {};