import Vue from "vue"; import {JCommonFilterPropsItem} from "../types/JCommonFilter"; declare module '*.vue' { import {DefineComponent} from 'vue' // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types const component: DefineComponent<{}, {}, any> export default component } declare global { interface Window { dayjs?: any axios?: any apiManage?:any; // 微应用相关的声明 mount?: Function unmount?: Function rawWindow?: Window __MICRO_APP_BASE_ROUTE__?: string __MICRO_APP_PUBLIC_PATH__?: string __webpack_public_path__?: any MAINVM?: Vue // 配置 实际以主应用为主 ['_CONFIG']?: { [key: string]: any } JeecgComponentConfig?: { JStorage?: { isEncrypt?: boolean } JeecgRequest?: { signatureSecret?: string baseUrl: string userName?: string hiddenRefreshTokenRequest?: boolean } JCommonFilterProps?: { [key: string]: JCommonFilterPropsItem }, }, /* 清除缓存 此方法并非你传递的 当你传递cacheTime开启缓存的时候 组件会在这里挂载一个清除缓存数据的方法 执行即可 不传递key值的话 会清除所有的只限于JCommonFilter的缓存 */ JCommonFilterClearCache?: (key?: string) => void projectHooks?: { // header地址 HeaderUrl?: string | ((route, isAdminRoute) => void), // 登录界面地址 loginUrl?: string, // 全局样式 globalStyleModify?: { // 后台header高度 '--header-height'?: string // 后台header背景色 '--header-bg-color'?: string } // 登录模式 1.不进入登录界面 LoginMode?: number, // 全局css样式 globalCssText?: string, }, // 主应用传下来的 自定义指令 vueDirectives?: { [key: string]: any } } } export {}