/* Menu */ declare namespace Menu { interface MenuOptions { path: string name: string hidden: boolean component?: string | (() => Promise) redirect?: string meta: MetaProps children?: MenuOptions[] } interface MetaProps { icon: string title: string activeMenu?: string link?: string full: boolean affix: boolean noCache: boolean } } /* FileType */ declare namespace File { type FileUploadType = 'img-upload-s3' | 'img-upload' | 'file-upload-s3' | 'file-upload' type ImageMimeType = | 'image/apng' | 'image/bmp' | 'image/gif' | 'image/jpeg' | 'image/pjpeg' | 'image/png' | 'image/svg+xml' | 'image/tiff' | 'image/webp' | 'image/x-icon' type ExcelMimeType = 'application/vnd.ms-excel' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' type WordMimeType = 'application/msword' | 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' type PdfMimeType = 'application/pdf' type PptMimeType = 'application/vnd.ms-powerpoint' | 'application/vnd.openxmlformats-officedocument.presentationml.presentation' type TxtMimeType = 'text/plain' type ZipMimeType = 'application/zip' | 'application/x-zip-compressed' | 'application/x-rar-compressed' type FileMimeType = ExcelMimeType | WordMimeType | PdfMimeType | PptMimeType | TxtMimeType | ZipMimeType } /* Vite */ declare type Recordable = Record declare interface ViteEnv { VITE_USER_NODE_ENV: 'development' | 'production' | 'test' VITE_GLOB_APP_TITLE: string VITE_PORT: number VITE_OPEN: boolean VITE_REPORT: boolean VITE_ROUTER_MODE: 'hash' | 'history' VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'gzip,brotli' | 'none' VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean VITE_DROP_CONSOLE: boolean VITE_PWA: boolean VITE_PUBLIC_PATH: string VITE_API_URL: string VITE_PROXY: [string, string][] } interface ImportMetaEnv extends ViteEnv { __: unknown } /* __APP_INFO__ */ declare const __APP_INFO__: { pkg: { name: string version: string dependencies: Recordable devDependencies: Recordable } lastBuildTime: string } /** * 界面字段隐藏属性 */ declare interface FieldOption { key: number label: string visible: boolean children?: Array }