import { NzModalService, NzModalRef } from "ng-zorro-antd"; import { TemplateRef, Type } from "@angular/core"; import { Subscription } from "rxjs"; export declare class FcmodalBusiness { static modalService: NzModalService; static modalRef: NzModalRef; static init(modalService: NzModalService): Subscription[]; /** * 普通模式弹窗 * @param modalConfig */ private static open; /** * 询问框 * @param modalConfig */ private static confirm; /** * 输入弹窗 * @param modalConfig */ private static input; /** * 提示 * @param modalConfig */ private static info; /** * 成功 * @param modalConfig */ private static success; /** * 错误 * @param modalConfig */ private static error; /** * 警告 * @param modalConfig */ private static warning; /** * 组件 * @param modalConfig */ private static component; } export interface FcModalConfig { visible?: boolean; zIndex?: number; width?: number | string; wrapClassName?: string; className?: string; style?: object; iconType?: string; componentParams?: object; closable?: boolean; mask?: boolean; maskClosable?: boolean; maskStyle?: object; bodyStyle?: object; getContainer?: HTMLElement; okText?: string; okType?: string; okLoading?: boolean; cancelText?: string; cancelLoading?: boolean; title: string; content?: string | TemplateRef<{}> | Type<{}>; closeable?: true; okFunc?: Function; cancelFunc?: Function; footer?: any; token?: string; afterOpen?: Function; afterClose?: Function; } export interface FcModalFooterConfig { label: string; /** 按钮文本*/ type?: string; /** 类型*/ shape?: string; /** 形状*/ ghost?: boolean; /** 是否ghost*/ size?: string; /** 大小*/ autoLoading?: boolean; /** 默认为true,若为true时,当onClick返回promise时此按钮将自动置为loading状态*/ /** 提示:下方方法的this指向该配置对象自身。当nzContent为组件类时,下方方法传入的contentComponentInstanc*/ /** 是否显示该按钮*/ show?: boolean; /** 是否显示为loading*/ loading?: boolean; /** 是否禁用*/ disabled?: boolean; }