@shaonq/vue 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +13 -1
- package/lib/index.js +1752 -1810
- package/lib/style.css +1 -1
- package/package.json +4 -2
package/lib/index.d.ts
CHANGED
|
@@ -221,8 +221,20 @@ declare const _default: {
|
|
|
221
221
|
};
|
|
222
222
|
export default _default;
|
|
223
223
|
|
|
224
|
+
export declare function delay(ms: number): Promise<unknown>;
|
|
225
|
+
|
|
224
226
|
export declare const download: (url: string, fileName?: string) => boolean;
|
|
225
227
|
|
|
228
|
+
export declare function downLoadPdf(name: string, element: HTMLElement, option?: {
|
|
229
|
+
/** `pdf page margin`: `[top, left, bottom, right]` */
|
|
230
|
+
margin?: number[];
|
|
231
|
+
/** 启用 `worker` */
|
|
232
|
+
className?: string;
|
|
233
|
+
/** 横向 `landscape` ,竖向 `portrait` */
|
|
234
|
+
letterRendering?: 'landscape' | 'portrait';
|
|
235
|
+
pagebreak?: any;
|
|
236
|
+
} & RecordAny): Promise<void>;
|
|
237
|
+
|
|
226
238
|
/**
|
|
227
239
|
* @param name 下载名称
|
|
228
240
|
* @param element HTMLElement
|
|
@@ -231,7 +243,7 @@ export declare const download: (url: string, fileName?: string) => boolean;
|
|
|
231
243
|
* @param {string} option.className 例 class = 'one-page-pdf' ,大量打印必填
|
|
232
244
|
* @param {string} option.success successCallback worker:any => void
|
|
233
245
|
*/
|
|
234
|
-
export declare function
|
|
246
|
+
export declare function downLoadPdf2(name: string, element: HTMLElement, option?: {
|
|
235
247
|
/** `pdf page margin`: `[top, left, bottom, right]` */
|
|
236
248
|
margin?: number[];
|
|
237
249
|
/** 启用 `worker` */
|