yh-hiprint 2.2.9 → 2.2.10

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/package.json CHANGED
@@ -1,24 +1,24 @@
1
- {
2
- "name": "yh-hiprint",
3
- "version": "2.2.9",
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"
1
+ {
2
+ "name": "yh-hiprint",
3
+ "version": "2.2.10",
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.0.0"
22
+ },
23
+ "author": "Liubin"
24
24
  }
package/z-index.js CHANGED
@@ -1,35 +1,35 @@
1
- import $ from "jquery";
2
-
3
- export default (function () {
4
- function t() {
5
- this.name = "zIndex";
6
- }
7
-
8
- return (
9
- (t.prototype.css = function (t, e) {
10
- if (t && t.length) {
11
- if (e) return t.css("z-index", e);
12
- }
13
- return null;
14
- }),
15
- (t.prototype.createTarget = function () {
16
- return (
17
- (this.target = $(
18
- '<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 元素层级2\n </div>\n <div class="hiprint-option-item-field">\n <input type="number" class="auto-submit"/>\n </div>\n </div>'
19
- )),
20
- this.target
21
- );
22
- }),
23
- (t.prototype.getValue = function () {
24
- var t = this.target.find("input").val();
25
- if (t) return parseInt(t.toString());
26
- }),
27
- (t.prototype.setValue = function (t) {
28
- this.target.find("input").val(t);
29
- }),
30
- (t.prototype.destroy = function () {
31
- this.target.remove();
32
- }),
33
- t
34
- );
35
- })();
1
+ import $ from "jquery";
2
+
3
+ export default (function () {
4
+ function t() {
5
+ this.name = "zIndex";
6
+ }
7
+
8
+ return (
9
+ (t.prototype.css = function (t, e) {
10
+ if (t && t.length) {
11
+ if (e) return t.css("z-index", e);
12
+ }
13
+ return null;
14
+ }),
15
+ (t.prototype.createTarget = function () {
16
+ return (
17
+ (this.target = $(
18
+ '<div class="hiprint-option-item">\n <div class="hiprint-option-item-label">\n 元素层级2\n </div>\n <div class="hiprint-option-item-field">\n <input type="number" class="auto-submit"/>\n </div>\n </div>'
19
+ )),
20
+ this.target
21
+ );
22
+ }),
23
+ (t.prototype.getValue = function () {
24
+ var t = this.target.find("input").val();
25
+ if (t) return parseInt(t.toString());
26
+ }),
27
+ (t.prototype.setValue = function (t) {
28
+ this.target.find("input").val(t);
29
+ }),
30
+ (t.prototype.destroy = function () {
31
+ this.target.remove();
32
+ }),
33
+ t
34
+ );
35
+ })();