yh-hiprint 2.2.1 → 2.2.3
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/CHANGE.md +3 -0
- package/hooks/useHiprint.js +1 -1
- package/index.js +1 -1
- package/package.json +24 -24
package/CHANGE.md
ADDED
package/hooks/useHiprint.js
CHANGED
|
@@ -109,7 +109,7 @@ export function useScale(callback) {
|
|
|
109
109
|
return scaleValue.value > 0.5;
|
|
110
110
|
});
|
|
111
111
|
const canZoomOut = computed(() => {
|
|
112
|
-
return scaleValue.value <
|
|
112
|
+
return scaleValue.value < 4;
|
|
113
113
|
});
|
|
114
114
|
function zoomIn() {
|
|
115
115
|
scaleValue.value = scaleValue.value - 0.1;
|
package/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const hiprint = ({ code, params, data, isCustom }) => {
|
|
|
19
19
|
let width = (document.documentElement.clientWidth - 1200) / 2;
|
|
20
20
|
// 转换数组
|
|
21
21
|
let paramData = params;
|
|
22
|
-
if (
|
|
22
|
+
if (!Array.isArray(params)) {
|
|
23
23
|
paramData = [params];
|
|
24
24
|
}
|
|
25
25
|
let url = "/hiprint/#/preview?code=" + code;
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yh-hiprint",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"pub:aliyun": "npm publish --registry https://packages.aliyun.com/60765e0161a945067837bb5f/npm/npm-registry/ --no-git-checks",
|
|
9
|
-
"pub:npm": "npm publish --registry https://registry.npmjs.org/ --no-git-checks"
|
|
10
|
-
},
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"jquery": "3.7.0",
|
|
13
|
-
"@claviska/jquery-minicolors": "2.3.6",
|
|
14
|
-
"jsbarcode": "3.11.5",
|
|
15
|
-
"jspdf": "2.5.1",
|
|
16
|
-
"html2canvas": "1.4.1",
|
|
17
|
-
"nzh": "1.0.9",
|
|
18
|
-
"canvg": "4.0.1"
|
|
19
|
-
},
|
|
20
|
-
"peerDependencies": {
|
|
21
|
-
"vue": "3.2.47"
|
|
22
|
-
},
|
|
23
|
-
"author": "Liubin"
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "yh-hiprint",
|
|
3
|
+
"version": "2.2.3",
|
|
4
|
+
"description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"pub:aliyun": "npm publish --registry https://packages.aliyun.com/60765e0161a945067837bb5f/npm/npm-registry/ --no-git-checks",
|
|
9
|
+
"pub:npm": "npm publish --registry https://registry.npmjs.org/ --no-git-checks"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"jquery": "3.7.0",
|
|
13
|
+
"@claviska/jquery-minicolors": "2.3.6",
|
|
14
|
+
"jsbarcode": "3.11.5",
|
|
15
|
+
"jspdf": "2.5.1",
|
|
16
|
+
"html2canvas": "1.4.1",
|
|
17
|
+
"nzh": "1.0.9",
|
|
18
|
+
"canvg": "4.0.1"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"vue": "3.2.47"
|
|
22
|
+
},
|
|
23
|
+
"author": "Liubin"
|
|
24
|
+
}
|