template-designer 0.5.8 → 0.5.9

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.
@@ -6653,7 +6653,12 @@ const Vg = {
6653
6653
  BOUNDARY_TOLERANCE: 0.5
6654
6654
  // 边界容差
6655
6655
  }
6656
- };
6656
+ }, iV = [
6657
+ { label: "0°", value: 0 },
6658
+ { label: "90°", value: 90 },
6659
+ { label: "180°", value: 180 },
6660
+ { label: "270°", value: 270 }
6661
+ ];
6657
6662
  class Ki {
6658
6663
  constructor(A = Bt.CACHE.MAX_SIZE) {
6659
6664
  this.cache = /* @__PURE__ */ new Map(), this.maxSize = A, this.accessOrder = [];
@@ -7081,9 +7086,9 @@ const $Q = /* @__PURE__ */ Vt(YQ, [["render", qQ]]), kg = [
7081
7086
  ], Hg = kg.flatMap((e) => e.components);
7082
7087
  async function Ab(e) {
7083
7088
  try {
7084
- return (await am(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-2ad93876.mjs"), "./props/rfid.js": () => import("./rfid-f825ac67.mjs") }), `./props/${e}.js`)).default;
7089
+ return (await am(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-45108f99.mjs"), "./props/rfid.js": () => import("./rfid-787d6d01.mjs") }), `./props/${e}.js`)).default;
7085
7090
  } catch {
7086
- return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-2ad93876.mjs")).default;
7091
+ return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-45108f99.mjs")).default;
7087
7092
  }
7088
7093
  }
7089
7094
  function eb(e = {}, A = {}) {
@@ -22469,7 +22474,7 @@ function(e) {
22469
22474
  */
22470
22475
  function(e) {
22471
22476
  function A() {
22472
- return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-c032b0ea.mjs")).catch(function(t) {
22477
+ return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-d312d568.mjs")).catch(function(t) {
22473
22478
  return Promise.reject(new Error("Could not load canvg: " + t));
22474
22479
  }).then(function(t) {
22475
22480
  return t.default ? t.default : t;
@@ -23405,7 +23410,7 @@ const eV = (e) => {
23405
23410
  }
23406
23411
  }), t.items = n, t.printWidth = t.print_width || t.printWidth || 0, t.printHeight = t.print_height || t.printHeight || 0, t;
23407
23412
  };
23408
- async function iV(e, A, t = {}) {
23413
+ async function aV(e, A, t = {}) {
23409
23414
  const {
23410
23415
  page: n,
23411
23416
  scale: r,
@@ -23469,9 +23474,10 @@ fc.install = (e) => {
23469
23474
  e.component(fc.name || "TemplateDesigner", fc);
23470
23475
  };
23471
23476
  export {
23477
+ iV as R,
23472
23478
  fc as T,
23473
23479
  Pe as _,
23474
23480
  rV as c,
23475
23481
  Hw as g,
23476
- iV as r
23482
+ aV as r
23477
23483
  };
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-a36079b2.mjs";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-211a69d6.mjs";
2
2
  import "vue";
3
3
  var ht = function(a) {
4
4
  return a && a.Math === Math && a;
@@ -1,9 +1,6 @@
1
- const e = [
2
- { label: "", value: 0 },
3
- { label: "90°", value: 90 },
4
- { label: "180°", value: 180 },
5
- { label: "270°", value: 270 }
6
- ], l = {
1
+ import { R as e } from "./index-211a69d6.mjs";
2
+ import "vue";
3
+ const t = {
7
4
  text: {
8
5
  // 组件默认宽度 单位mm
9
6
  width: 20,
@@ -540,5 +537,5 @@ const e = [
540
537
  }
541
538
  };
542
539
  export {
543
- l as default
540
+ t as default
544
541
  };
@@ -1,4 +1,6 @@
1
- const e = {
1
+ import { R as e } from "./index-211a69d6.mjs";
2
+ import "vue";
3
+ const t = {
2
4
  text: {
3
5
  x: 0,
4
6
  y: 0,
@@ -145,6 +147,14 @@ const e = {
145
147
  default: 2,
146
148
  layout: "half"
147
149
  // 占半行
150
+ },
151
+ {
152
+ prop: "rotation",
153
+ label: "旋转角度",
154
+ type: "select",
155
+ options: e,
156
+ default: 0,
157
+ layout: "half"
148
158
  }
149
159
  ]
150
160
  },
@@ -208,6 +218,14 @@ const e = {
208
218
  type: "color",
209
219
  hide: !0,
210
220
  default: "#000000"
221
+ },
222
+ {
223
+ prop: "rotation",
224
+ label: "旋转角度",
225
+ type: "select",
226
+ options: e,
227
+ default: 0,
228
+ layout: "half"
211
229
  }
212
230
  ]
213
231
  },
@@ -323,10 +341,18 @@ const e = {
323
341
  { label: "否", value: !1 }
324
342
  ],
325
343
  default: !1
344
+ },
345
+ {
346
+ prop: "rotation",
347
+ label: "旋转角度",
348
+ type: "select",
349
+ options: e,
350
+ default: 0,
351
+ layout: "half"
326
352
  }
327
353
  ]
328
354
  }
329
355
  };
330
356
  export {
331
- e as default
357
+ t as default
332
358
  };
@@ -1,4 +1,4 @@
1
- import { T as o, r as t } from "./index-a36079b2.mjs";
1
+ import { T as o, r as t } from "./index-211a69d6.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  o as default,