yh-hiprint 2.5.2 → 3.0.0
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/HiprintDesigner.vue +21 -197
- package/config.json +399 -0
- package/doc.md +265 -0
- package/hooks/useHipirntCanvas.ts +3 -0
- package/hooks/{useHiprint.js → useHiprint.ts} +92 -41
- package/{index.js → index.ts} +68 -21
- package/libs/es62es5.js +42 -0
- package/libs/previewHiprint.ts +55 -0
- package/package.json +3 -4
- package/store/defaultPrintElement.ts +152 -0
- package/store/useHiprintStore.ts +75 -0
- package/types.ts +756 -0
- package/index.d.ts +0 -67
package/index.d.ts
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
declare module "yh-hiprint";
|
|
2
|
-
|
|
3
|
-
/** JQuery 简化dom操作的库 */
|
|
4
|
-
export declare const jquery: JQuery;
|
|
5
|
-
|
|
6
|
-
/** hiprint 字体大小配置 */
|
|
7
|
-
export declare const fontSize;
|
|
8
|
-
/** hiprint 缩放配置 */
|
|
9
|
-
export declare const scale;
|
|
10
|
-
/** hiprint 层级配置 */
|
|
11
|
-
export declare const zIndex;
|
|
12
|
-
/** hiprint 侧边栏配置 */
|
|
13
|
-
export declare const panel;
|
|
14
|
-
|
|
15
|
-
export declare const hiprint;
|
|
16
|
-
export declare const defaultElementTypeProvider: (options: any) => {
|
|
17
|
-
addElementTypes: (context) => void;
|
|
18
|
-
};
|
|
19
|
-
export declare const print;
|
|
20
|
-
export declare const print2;
|
|
21
|
-
export declare const usePaper;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 打印组件的缩放
|
|
25
|
-
* @param callback 每次缩放后都会执行的回调函数
|
|
26
|
-
*/
|
|
27
|
-
export declare const useScale: (callback: () => void) => {
|
|
28
|
-
/** 当前缩放值 */
|
|
29
|
-
scaleValue: Ref<number>;
|
|
30
|
-
/** 当前百分比展示字符串 */
|
|
31
|
-
scalePercentage: ComputedRef<string>;
|
|
32
|
-
/** 当前是否能缩小 */
|
|
33
|
-
canZoomIn: ComputedRef<boolean>;
|
|
34
|
-
/** 当前是否能放大 */
|
|
35
|
-
canZoomOut: ComputedRef<boolean>;
|
|
36
|
-
/** 缩小 */
|
|
37
|
-
zoomIn: () => void;
|
|
38
|
-
/** 放大 */
|
|
39
|
-
zoomOut: () => void;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* 打印组件数据源
|
|
44
|
-
* @param axios 系统中的请求实体 `src/libs/api.request.js`
|
|
45
|
-
*/
|
|
46
|
-
export declare const useDataSource: (axios) => {
|
|
47
|
-
detailData: Ref<any>;
|
|
48
|
-
getDetail: (id) => void;
|
|
49
|
-
listCode: Ref<any[]>;
|
|
50
|
-
dataSourceList: Ref<any[]>;
|
|
51
|
-
listColumns: ComputedRef<string[]>;
|
|
52
|
-
formCode: Ref<any[]>;
|
|
53
|
-
formColumns: ComputedRef<string[]>;
|
|
54
|
-
dataSourceForm: Ref<any[]>;
|
|
55
|
-
codeMapDataSource: Ref<any>;
|
|
56
|
-
getDataSourceList: () => void;
|
|
57
|
-
dataSource: Ref<string[]>;
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export declare interface HiprintOption {
|
|
61
|
-
code: string;
|
|
62
|
-
params: Object;
|
|
63
|
-
data: Record<string, any> | Record<string, any>[];
|
|
64
|
-
isCustom: boolean;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export declare const hiprint: (HiprintOption) => void;
|