import { Notice } from 'view-design'; import { FooterItemsService } from '../app-service/common-service/footer-items-service'; import { UIStateService } from '../app-service/common-service/ui-state-service'; import { TopItemsService } from '../app-service/common-service/top-items-service'; import { ElMessage } from 'element-ui'; import { UIServiceRegister, UtilServiceRegister } from '@ibizstudio/runtime'; import { FooterItemsService, TopItemsService, UIStateService } from './app-service'; import { itc } from '../directives/ibz-tooltip/ibz-tooltip-controller'; declare module 'vue/types/vue' { interface Vue { $Notice: Notice; $throw: (...args: unknown[]) => void; $success: (...args: unknown[]) => void; $warning: (...args: unknown[]) => void; $info: (...args: unknown[]) => void; $store: any; $viewTool: any; $route: any; $router: any; $util: any; $t: any; $tl: (...args: unknown[]) => void; $message: ElMessage; $appmodal: any; $footerRenderService: FooterItemsService; $topRenderService: TopItemsService; $uiState: UIStateService; } } declare global { interface Window { uiServiceRegister: UIServiceRegister; utilServiceRegister: UtilServiceRegister; itc: typeof itc; } } declare module 'vue/types/vue' { interface Vue { $http: any; $throw: any; $success: Function; $warning: Function; $tl: Function; $info: Function; $util: any; $verify: any; $viewTool: any; $uiActionTool: any; $message: ElMessage; $appmodal: any; $appdrawer: any; $apppopover: any; $footerRenderService: FooterItemsService; $topRenderService: TopItemsService; $uiState: UIStateService; } } declare global { interface Object { /** * 清除所有属性,不改变内存地址 * * @memberof Object */ clearAll(): void; } /** * 判断对象是否存在,判断是否为undefined或null,避免数值型0误判 * * @param {*} obj * @returns {boolean} */ function isExist(obj: any): boolean; /** * 判断字符串是否为空 * * @param {string | undefined | null} str * @returns {boolean} */ function isEmpty(str: string | undefined | null): boolean; /** * 判断字符串,存在并且不为空 * * @param {string | undefined | null} str * @returns {boolean} */ function isExistAndNotEmpty(str: string | undefined | null): boolean; } /** * 导航标签组件 * * @export * @interface TabPageExp */ export declare interface TabPageExp { /** * * * @param {*} path * @param {*} [keys] * @param {*} [options] * @returns {*} * @memberof TabPageExp */ pathToRegexp(path: any, keys?: any, options?: any): any; } declare module 'vue/types/vue' { interface Vue { /** * 代码表绘制对象 * * @type {CodeList} * @memberof Vue */ $pathToRegExp: TabPageExp; } }