zhengyiming
2025-02-10 958b79ed89b9e742540f714a80261d222c0fc09b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import { ElTree } from 'element-plus';
import { Ref,PropType as VPropType,Ref } from 'vue';
import {
  OperationBtnType as BlOperationBtnType,
} from '@bole-core/components';
 
 
declare global {
  const __APP_INFO__: {
    pkg: {
      name: string;
      version: string;
      dependencies: Recordable<string>;
      devDependencies: Recordable<string>;
    };
    lastBuildTime: string;
  };
  interface Window {
    webkitCancelAnimationFrame: (handle: number) => void;
    mozCancelAnimationFrame: (handle: number) => void;
    oCancelAnimationFrame: (handle: number) => void;
    msCancelAnimationFrame: (handle: number) => void;
    webkitRequestAnimationFrame: (callback: FrameRequestCallback) => number;
    mozRequestAnimationFrame: (callback: FrameRequestCallback) => number;
    oRequestAnimationFrame: (callback: FrameRequestCallback) => number;
    msRequestAnimationFrame: (callback: FrameRequestCallback) => number;
    WeixinJSBridge:any
  }
 
  type TreeInstanceType = InstanceType<typeof ElTree>;
  type OperationBtnType = BlOperationBtnType;
  type PropType<T> = VPropType<T>;
  type MaybeRef<T> = T | Ref<T>;
 
  type Writable<T> = {
    -readonly [P in keyof T]: T[P];
  };
 
  type Nullable<T> = T | null;
  type Recordable<T = any> = Record<string, T>;
  type ReadonlyRecordable<T = any> = {
    readonly [key: string]: T;
  };
  type Indexable<T = any> = {
    [key: string]: T;
  };
  type DeepPartial<T> = {
    [P in keyof T]?: DeepPartial<T[P]>;
  };
  type ValueOf<T> = T[keyof T];
  type TimeoutHandle = ReturnType<typeof setTimeout>;
  type IntervalHandle = ReturnType<typeof setInterval>;
 
  interface ChangeEvent extends Event {
    target: HTMLInputElement;
  }
 
  interface WheelEvent {
    path?: EventTarget[];
  }
  interface ImportMetaEnv extends ViteEnv {
    __: unknown;
  }
 
  /**
   * 打包压缩格式的类型声明
   */
  type ViteCompression =
    | "none"
    | "gzip"
    | "brotli"
    | "both"
    | "gzip-clear"
    | "brotli-clear"
    | "both-clear";
 
  interface ViteEnv {
    /**
     * 项目本地运行端口号
     */
    VITE_PORT: number;
    /**
     * 开发环境读取配置文件路径
     */
    VITE_PUBLIC_PATH: string;
    /**
     * 开发环境代理
     */
    VITE_PROXY_DOMAIN: string;
    /**
     * 开发环境后端地址
     */
    VITE_PROXY_DOMAIN_REAL: string;
    /**
     * 开发环境路由历史模式
     */
    VITE_ROUTER_HISTORY: string;
    /**
     * 是否为打包后的文件提供传统浏览器兼容性支持 支持 true 不支持 false
     */
    VITE_LEGACY: boolean;
    /**
     * OSS上传地址
     */
    VITE_OSS_URL: string;
    VITE_OSS_URL_BUCKET: string;
    /**
     * api基础地址
     */
    VITE_BASE_URL: string;
 
    VITE_COMPRESSION: ViteCompression;
    VITE_WEMAP_KEY:string;
    VITE_CLIENT_ORIGIN:string;
    VITE_AppType: 'one' | 'jx';
  }
 
  interface AppConfig {
 
    title: string;
 
    /**
     * @description 登录页form title
     */
    loginFormTitle: string;
 
    /**
     * @type {string | array} 'production' | ['production', 'development']
     * @description Need show err logs component.
     */
    errorLog: string | Array<'production' | 'development'>;
  }
 
  interface WeMapModel {
    latitude?: number;
    longitude?: number;
    provinceName?: string;
    cityName?: string;
    countyName?: string;
    provinceCode?: number;
    cityCode?: number;
    countyCode?: number;
    address?: string;
  }
 
  interface CommonAnnexItem {
    url?: string;
    name?: string;
    path?: string;
  };
 
}
 
export { }