| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 { } |