interface IPrintModalBaseParams { onOk?: () => any; onCancel?: () => any; params?: { [key: string]: string; }; width?: number | undefined; height?: number | undefined; cancelBtnText?: string | undefined; printBtnText?: string | undefined; title?: 'string'; } interface IPrintModalWithTemplateParams extends IPrintModalBaseParams { templateId: string; } interface IPrintModalWithUrlParams extends IPrintModalBaseParams { url: string; } /** * 打印弹框预览展示 * @typedef {object} info * @param {info} info - templateId url 可以任意传一个 * @property {string} info.templateId - 模板id * @property {string} info.url - 通过getUrl 获取到的url * @property {number} info.width - 弹窗的宽度 * @property {number} info.height - 弹窗的高度 * @property {string} info.title - 弹窗标题 * @property {string} info.printBtnText - 弹窗标题 * @property {string} info.cancelBtnText - 弹窗标题 */ declare function printModal(info: IPrintModalWithTemplateParams): void; declare function printModal(info: IPrintModalWithUrlParams): void; export { printModal as printPreview }; //# sourceMappingURL=modal.d.ts.map