UNPKG

@gsp-cmp/ccmp-ui

Version:

CCMP UI Component Library for Angular

31 lines (30 loc) 1.17 kB
import { TemplateRef } from '@angular/core'; import { Options } from '../params/options'; import { MessagerService } from '@farris/ui-messager'; import { NotifyService } from '@farris/ui-notify'; import { ComponentInfo } from '../params/component-info'; import { I18nTranslateService } from '../i18n/i18n-translate-service'; export declare class ViewUtils { private messagerService; private notify; translateService: I18nTranslateService; constructor(messagerService: MessagerService, notify: NotifyService); /** * 获取模态框配置信息 * @param btnRef 按钮模板引用 * @param title 模态框标题 * @param options 配置项,暂未使用 */ getModalConfig(btnRef: TemplateRef<any>, options?: Options): { title: string; width: number; height: number; resizable: boolean; showButtons: boolean; showMaxButton: boolean; enableScroll: boolean; buttons: TemplateRef<any>; }; showObseleteDialog(data: ComponentInfo): void; showInfo(message: string, infoType: string, title: string, timeout: number): void; }