import { BaseResult, DataFormat, QueryData, SearchQuery } from '../interface'; import { ModalFuncProps } from 'ant-design-vue'; import { default as FullScreenModal } from './FullScreenModal.vue'; interface ModalState

{ /** modal 是否可见 */ visible: boolean; /** modal 页面参数 */ params?: P; } interface ModalInstance

extends ModalState

{ /** 打开 Modal */ open: (params?: P) => void; /** 关闭 Modal */ close: () => void; } declare const useModal:

() => ModalInstance

; export type ConfirmOptions> = { api: (args?: P) => Promise; params?: P; tableData?: DataFormat; query?: SearchQuery | null; callback?: (res: R) => void; }; export declare function confirm>(opts: ConfirmOptions, options?: Omit): void; export declare function confirm>(api: (args?: P) => Promise, params?: P, query?: SearchQuery | ((res: R) => void) | null, options?: Omit): void; type InternalModalType = typeof FullScreenModal; interface VcModalInterface extends InternalModalType { /** 获取 Modal 状态实例 */ useModal: typeof useModal; /** 弹出确认框,默认为删除配置 */ confirm: typeof confirm; } /** 扩展 Antd 的 Modal,增加可拖动、全屏 */ declare const VcModal: VcModalInterface; /** Modal 页面可继承此接口 */ export interface VcModalProps

{ modal: ModalInstance

; query?: SearchQuery; } export type { FullScreenModalProps } from './FullScreenModal.vue'; export { VcModal };