@shaonq/vue 1.2.0 → 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 +19 -4
- package/lib/index.js +2194 -2235
- package/lib/style.css +1 -1
- package/package.json +4 -2
package/lib/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ declare type ComponentAttrHandler = (util: OrcFormUtilBind, index?: any) => unkn
|
|
|
211
211
|
/** 组件属性允许的值类型 */
|
|
212
212
|
declare type ComponentAttrValue = null | boolean | number | string | RecordAny_3 | RecordAny_3[] | ComponentAttrHandler;
|
|
213
213
|
|
|
214
|
-
declare interface CssType extends Partial<CSSStyleDeclaration>, RecordAny_2 {
|
|
214
|
+
export declare interface CssType extends Partial<CSSStyleDeclaration>, RecordAny_2 {
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
export declare const deepClone: <T = RecordAny | RecordAny[]>(origin: T) => T;
|
|
@@ -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` */
|
|
@@ -1046,6 +1058,7 @@ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<Extr
|
|
|
1046
1058
|
}>>, {
|
|
1047
1059
|
hiprintTemplate: Ref<PrintTemplate | undefined, PrintTemplate | undefined>;
|
|
1048
1060
|
selectedOptions: Ref<{
|
|
1061
|
+
[x: string]: any;
|
|
1049
1062
|
left?: number | undefined;
|
|
1050
1063
|
top?: number | undefined;
|
|
1051
1064
|
height?: number | undefined;
|
|
@@ -1085,6 +1098,7 @@ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<Extr
|
|
|
1085
1098
|
fontSize?: string | undefined;
|
|
1086
1099
|
fontWeight?: string | undefined;
|
|
1087
1100
|
} | undefined, {
|
|
1101
|
+
[x: string]: any;
|
|
1088
1102
|
left?: number | undefined;
|
|
1089
1103
|
top?: number | undefined;
|
|
1090
1104
|
height?: number | undefined;
|
|
@@ -1134,8 +1148,8 @@ export declare const OrcHiPrint: __VLS_WithTemplateSlots_8< DefineComponent<Extr
|
|
|
1134
1148
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
1135
1149
|
}>, {
|
|
1136
1150
|
template: Record<string, any>;
|
|
1137
|
-
printData: Record<string, any>;
|
|
1138
1151
|
fields: FieldOption[];
|
|
1152
|
+
printData: Record<string, any>;
|
|
1139
1153
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1140
1154
|
"toolbar-left"?(_: {
|
|
1141
1155
|
tools: {
|
|
@@ -1244,6 +1258,7 @@ export declare interface OrcHiPrintData extends Record<string, any> {
|
|
|
1244
1258
|
fontSize?: string;
|
|
1245
1259
|
/** 字体粗细 */
|
|
1246
1260
|
fontWeight?: string;
|
|
1261
|
+
[x: string]: any;
|
|
1247
1262
|
};
|
|
1248
1263
|
printElementType: {
|
|
1249
1264
|
/** 元素标题 */
|
|
@@ -1492,7 +1507,7 @@ declare interface OrcTableExpose extends TableGridTwoType {
|
|
|
1492
1507
|
}
|
|
1493
1508
|
|
|
1494
1509
|
/** column type */
|
|
1495
|
-
declare interface OrcTableItem extends RecordAny_2 {
|
|
1510
|
+
export declare interface OrcTableItem extends RecordAny_2 {
|
|
1496
1511
|
show?: boolean;
|
|
1497
1512
|
dataIndex: string;
|
|
1498
1513
|
title?: string;
|