@web-utils/component 4.0.15 → 4.0.16

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.
Files changed (169) hide show
  1. package/address-input/index.mjs +13 -15
  2. package/card/index.mjs +18 -20
  3. package/carousel/index.mjs +10 -12
  4. package/chat/index.mjs +45 -56
  5. package/chunk-file-uploader/index.mjs +36 -378
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/ElementBaseInfo.ZADwixb5.mjs +125 -0
  8. package/chunks/ElementForm.CQ3PN5qj.mjs +223 -0
  9. package/chunks/ElementListeners.De_PRuIm.mjs +215 -0
  10. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +181 -0
  11. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +60 -0
  12. package/chunks/ElementProperties.CosfDrlW.mjs +112 -0
  13. package/chunks/{ElementTaskConfig.AvBOzAni.mjs → ElementTaskConfig.Bko0kgTp.mjs} +55 -63
  14. package/chunks/FlowCondition.Y6qEYi1T.mjs +102 -0
  15. package/chunks/FormTemp.BQxO5IQq.mjs +123 -0
  16. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +85 -0
  17. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +169 -0
  18. package/chunks/{confirmable-mixin.BFZb6pcK.mjs → confirmable-mixin.B2TtLAdk.mjs} +1 -1
  19. package/chunks/core.0Exl13Mz.mjs +54 -0
  20. package/chunks/{dataformat.DJoNBlmI.mjs → dataformat.CpqOeGBl.mjs} +6 -6
  21. package/chunks/{dic.BinnDitI.mjs → dic.Dkl-leRW.mjs} +9 -9
  22. package/chunks/dictionary.DGt59Ir7.mjs +68 -0
  23. package/chunks/{event.DSlcqYHL.mjs → event.9aDS6jcw.mjs} +2 -2
  24. package/chunks/{form-input.BtS_J5a2.mjs → form-input.CvFdwlEV.mjs} +2 -2
  25. package/chunks/form-item.LWjePsPa.mjs +233 -0
  26. package/chunks/{index.CIfe3UB3.mjs → index.9OxHjTIE.mjs} +2 -2
  27. package/chunks/{index.Cn7aq-Et.mjs → index.B2TRddqf.mjs} +8 -8
  28. package/chunks/{init.xOlFpTyZ.mjs → init.DAsXSoLW.mjs} +2 -2
  29. package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
  30. package/chunks/{util.DI42t5GU.mjs → util.DqFv_pWg.mjs} +22 -22
  31. package/chunks/utilSelf.Csq1766E.mjs +48 -0
  32. package/chunks/utils.DRcxC1Fb.mjs +60 -0
  33. package/color-picker/index.mjs +22 -101
  34. package/confirm-button/index.mjs +1 -1
  35. package/confirmable/index.mjs +1 -1
  36. package/data-box/index.mjs +12 -15
  37. package/data-card/index.mjs +10 -12
  38. package/data-card-text/index.mjs +10 -12
  39. package/data-display/index.mjs +15 -17
  40. package/data-icons/index.mjs +13 -16
  41. package/data-imgtext/index.mjs +15 -18
  42. package/data-operatext/index.mjs +14 -16
  43. package/data-panel/index.mjs +13 -16
  44. package/data-pay/index.mjs +16 -20
  45. package/data-price/index.mjs +14 -16
  46. package/data-progress/index.mjs +13 -17
  47. package/data-rotate/index.mjs +12 -15
  48. package/data-table-picker/index.mjs +15 -18
  49. package/data-tabs/index.mjs +12 -15
  50. package/dialog-form/index.mjs +16 -18
  51. package/dynamic-table/index.mjs +25 -30
  52. package/editable-progress/index.mjs +9 -11
  53. package/editable-tree/index.mjs +52 -56
  54. package/egd-collapse-item/index.mjs +9 -9
  55. package/element-dialog/index.mjs +22 -23
  56. package/element-listeners/style.css +1 -0
  57. package/element-multi-instance/style.css +1 -0
  58. package/flex-column/index.mjs +1 -1
  59. package/flex-item/index.mjs +1 -1
  60. package/flex-row/index.mjs +1 -1
  61. package/flow/index.mjs +10 -11
  62. package/flow-designer/index.mjs +699 -1973
  63. package/flow-designer/style.css +1 -1
  64. package/flow-node/index.mjs +1 -1
  65. package/flow-viewer/index.mjs +9 -9
  66. package/form-block/index.mjs +32 -34
  67. package/form-cascader/index.mjs +23 -24
  68. package/form-checkbox/index.mjs +16 -17
  69. package/form-checkbox-group/index.mjs +20 -23
  70. package/form-date-picker/index.mjs +18 -20
  71. package/form-holder/index.mjs +13 -14
  72. package/form-input/index.mjs +14 -15
  73. package/form-input-cron-expression/index.mjs +19 -22
  74. package/form-input-email/index.mjs +15 -16
  75. package/form-input-id-card/index.mjs +12 -13
  76. package/form-input-number/index.mjs +16 -17
  77. package/form-input-phone-number/index.mjs +21 -22
  78. package/form-input-tag/index.mjs +14 -15
  79. package/form-input-time/index.mjs +14 -15
  80. package/form-item/index.mjs +140 -3
  81. package/form-item-group/index.mjs +28 -31
  82. package/form-radio-group/index.mjs +27 -28
  83. package/form-select/index.mjs +21 -23
  84. package/form-switch/index.mjs +16 -17
  85. package/form-table/index.mjs +16 -17
  86. package/form-table-plus/index.mjs +21 -22
  87. package/form-textarea/index.mjs +15 -16
  88. package/form-tree-select/index.mjs +14 -15
  89. package/form-tree-select-multiple/index.mjs +14 -15
  90. package/form-view/index.mjs +35 -39
  91. package/fy-array/index.mjs +33 -37
  92. package/fy-cascader/index.mjs +16 -17
  93. package/fy-checkbox/index.mjs +11 -13
  94. package/fy-code/index.mjs +10 -10
  95. package/fy-curd/index.mjs +1128 -1152
  96. package/fy-date/index.mjs +10 -11
  97. package/fy-draggable/index.mjs +9 -10
  98. package/fy-dynamic/index.mjs +22 -25
  99. package/fy-empty/index.mjs +1 -1
  100. package/fy-form/index.mjs +638 -15
  101. package/fy-form-design/index.mjs +1307 -1345
  102. package/fy-from/crud/zh.d.ts +6 -6
  103. package/fy-input/index.mjs +12 -14
  104. package/fy-input-color/index.mjs +13 -15
  105. package/fy-input-icon/index.mjs +20 -23
  106. package/fy-input-map/index.mjs +28 -31
  107. package/fy-input-number/index.mjs +9 -10
  108. package/fy-input-table/index.mjs +18 -22
  109. package/fy-input-tree/index.mjs +33 -37
  110. package/fy-progress/index.mjs +9 -10
  111. package/fy-radio/index.mjs +15 -16
  112. package/fy-rate/index.mjs +10 -11
  113. package/fy-select/index.mjs +25 -29
  114. package/fy-slider/index.mjs +11 -12
  115. package/fy-switch/index.mjs +9 -10
  116. package/fy-tabs/index.mjs +15 -17
  117. package/fy-time/index.mjs +1 -1
  118. package/fy-title/index.mjs +1 -1
  119. package/fy-tree/index.mjs +18 -24
  120. package/fy-u-editor/index.mjs +1 -1
  121. package/fy-upload/index.mjs +74 -76
  122. package/guide-steps/index.mjs +11 -13
  123. package/iframe-window/index.mjs +9 -10
  124. package/image-cropper/index.mjs +28 -30
  125. package/image-preview/index.mjs +12 -14
  126. package/index.mjs +72 -72
  127. package/input-number/index.mjs +13 -14
  128. package/input-number-range/index.mjs +11 -12
  129. package/license/index.mjs +1 -1
  130. package/login/index.mjs +21 -26
  131. package/nav-bar/index.mjs +9 -10
  132. package/notice/index.mjs +9 -10
  133. package/package.json +1 -1
  134. package/page-index/index.mjs +12 -13
  135. package/page-index-top/index.mjs +23 -28
  136. package/page-skeleton/index.mjs +14 -14
  137. package/page-skeleton-new/index.mjs +8 -9
  138. package/pageable-table/index.mjs +172 -182
  139. package/pageable-view/index.mjs +15 -16
  140. package/picker-table-view/index.mjs +49 -58
  141. package/present-view/index.mjs +35 -39
  142. package/record-video/index.mjs +1 -1
  143. package/resize-observer/index.mjs +1 -1
  144. package/search/index.mjs +20 -22
  145. package/search-popover/index.mjs +1 -1
  146. package/sign/index.mjs +1 -1
  147. package/skeleton-panel/index.mjs +9 -10
  148. package/split-pane/index.mjs +36 -37
  149. package/static-pageable-table/index.mjs +11 -13
  150. package/sub-table/index.mjs +36 -49
  151. package/sub-table-plus/index.mjs +229 -18
  152. package/swiper/index.mjs +11 -12
  153. package/table-column/index.mjs +223 -3
  154. package/table-view/index.mjs +52 -60
  155. package/tabs-view/index.mjs +17 -19
  156. package/tag-render/index.mjs +16 -18
  157. package/text-ellipsis/index.mjs +9 -10
  158. package/toolbar/index.mjs +13 -14
  159. package/toolbar-button/index.mjs +13 -14
  160. package/verify/index.mjs +1 -1
  161. package/vue-cron/index.mjs +259 -267
  162. package/watermark/index.mjs +1 -1
  163. package/web-types.json +1 -1
  164. package/x-input-tag/index.mjs +21 -24
  165. package/chunks/FormItem.Bhsy_O2B.mjs +0 -372
  166. package/chunks/FyForm.DriwCJ7b.mjs +0 -765
  167. package/chunks/SignalAndMessage.BpjOoKhK.mjs +0 -92
  168. package/chunks/SubTablePlus.BH0IIv3X.mjs +0 -270
  169. package/chunks/TableColumn.BzivvXMF.mjs +0 -337
@@ -1,15 +1,13 @@
1
- import R from "element-ui/lib/button";
2
- import I from "element-ui/lib/upload";
3
- import { p as N, e as B } from "../chunks/event.DSlcqYHL.mjs";
4
- import { B as K, v as T, g as L } from "../chunks/util.DI42t5GU.mjs";
1
+ import { p as R, e as I } from "../chunks/event.9aDS6jcw.mjs";
2
+ import { B, i as T, p as N } from "../chunks/util.DqFv_pWg.mjs";
5
3
  import { p as A } from "../chunks/packages.ByyangTp.mjs";
6
4
  import { isBlank as b } from "@web-utils/core";
7
- import { n as D } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
5
+ import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
8
6
  let d, g;
9
7
  const w = {
10
8
  width: 200,
11
9
  height: 200
12
- }, s = {
10
+ }, n = {
13
11
  text: "avueJS",
14
12
  // 文字
15
13
  fontFamily: "microsoft yahei",
@@ -33,18 +31,18 @@ function k(i, t) {
33
31
  t(o.target.result);
34
32
  };
35
33
  }
36
- function q(i, t = {}, e) {
37
- const { text: o, fontFamily: n, color: u, fontSize: l, opacity: p, bottom: S, right: f, ratio: x } = t;
38
- v(), k(i, C);
39
- function v() {
40
- s.text = o || s.text, s.fontFamily = n || s.fontFamily, s.color = u || s.color, s.fontSize = l || s.fontSize, s.opacity = p || s.opacity, s.bottom = S || s.bottom, s.right = f || s.right, s.ratio = x || s.ratio;
34
+ function L(i, t = {}, e) {
35
+ const { text: o, fontFamily: s, color: u, fontSize: l, opacity: p, bottom: S, right: f, ratio: x } = t;
36
+ _(), k(i, C);
37
+ function _() {
38
+ n.text = o || n.text, n.fontFamily = s || n.fontFamily, n.color = u || n.color, n.fontSize = l || n.fontSize, n.opacity = p || n.opacity, n.bottom = S || n.bottom, n.right = f || n.right, n.ratio = x || n.ratio;
41
39
  }
42
40
  function C(y) {
43
41
  const c = new Image();
44
42
  c.src = y, c.onload = function() {
45
43
  const m = c.width, a = c.height;
46
44
  r(m, a), g.drawImage(c, 0, 0, m, a), P(m, a);
47
- const _ = document.getElementById("canvas").toDataURL(i.type, s.ratio), F = K(_, i.name);
45
+ const v = document.getElementById("canvas").toDataURL(i.type, n.ratio), F = B(v, i.name);
48
46
  e == null || e(F);
49
47
  };
50
48
  }
@@ -52,67 +50,67 @@ function q(i, t = {}, e) {
52
50
  d = document.getElementById("canvas"), d === null && (d = document.createElement("canvas"), d.id = "canvas", d.className = "avue-canvas", document.body.appendChild(d)), g = d.getContext("2d"), d.width = y, d.height = c;
53
51
  }
54
52
  function P(y, c) {
55
- const m = s.text, a = U(m, y, c);
56
- g.font = `${a.fontSize}px ${s.fontFamily}`, g.fillStyle = s.color, g.globalAlpha = s.opacity / 100, g.fillText(m, a.x, a.y);
53
+ const m = n.text, a = E(m, y, c);
54
+ g.font = `${a.fontSize}px ${n.fontFamily}`, g.fillStyle = n.color, g.globalAlpha = n.opacity / 100, g.fillText(m, a.x, a.y);
57
55
  }
58
- function U(y, c, m) {
59
- let a, _;
60
- const E = s.fontSize / w.width * c;
61
- s.bottom ? _ = w.height - s.bottom : _ = s.top, s.right ? a = w.width - s.right : a = s.left, g.font = `${s.fontSize}px ${s.fontFamily}`;
56
+ function E(y, c, m) {
57
+ let a, v;
58
+ const U = n.fontSize / w.width * c;
59
+ n.bottom ? v = w.height - n.bottom : v = n.top, n.right ? a = w.width - n.right : a = n.left, g.font = `${n.fontSize}px ${n.fontFamily}`;
62
60
  const $ = Number(g.measureText(y).width);
63
61
  a = a - $;
64
- const z = a / w.width, j = _ / w.height;
65
- return a = z * c, _ = j * m, {
62
+ const z = a / w.width, j = v / w.height;
63
+ return a = z * c, v = j * m, {
66
64
  x: a,
67
- y: _,
68
- fontSize: E
65
+ y: v,
66
+ fontSize: U
69
67
  };
70
68
  }
71
69
  }
72
- const M = (i, t, e) => {
70
+ const D = (i, t, e) => {
73
71
  const o = JSON.stringify(e);
74
72
  window.__ENV__ === "development" && (console == null || console.log("put_policy = ", o));
75
- const n = J(V(o));
76
- window.__ENV__ === "development" && (console == null || console.log("encoded = ", n));
77
- const l = window.CryptoJS.HmacSHA1(n, t).toString(window.CryptoJS.enc.Base64);
73
+ const s = M(q(o));
74
+ window.__ENV__ === "development" && (console == null || console.log("encoded = ", s));
75
+ const l = window.CryptoJS.HmacSHA1(s, t).toString(window.CryptoJS.enc.Base64);
78
76
  window.__ENV__ === "development" && (console == null || console.log("encoded_signed=", l));
79
- const p = `${i}:${H(l)}:${n}`;
77
+ const p = `${i}:${V(l)}:${s}`;
80
78
  return window.__ENV__ === "development" && (console == null || console.log("upload_token=", p)), p;
81
79
  };
82
- function V(i) {
80
+ function q(i) {
83
81
  let t, e, o;
84
82
  t = "";
85
- const n = i.length;
86
- for (e = 0; e < n; e++)
83
+ const s = i.length;
84
+ for (e = 0; e < s; e++)
87
85
  o = i.charCodeAt(e), o >= 1 && o <= 127 ? t += i.charAt(e) : o > 2047 ? (t += String.fromCharCode(224 | o >> 12 & 15), t += String.fromCharCode(128 | o >> 6 & 63), t += String.fromCharCode(128 | o >> 0 & 63)) : (t += String.fromCharCode(192 | o >> 6 & 31), t += String.fromCharCode(128 | o >> 0 & 63));
88
86
  return t;
89
87
  }
90
88
  const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
91
- function J(i) {
92
- let t, e, o, n, u;
89
+ function M(i) {
90
+ let t, e, o, s, u;
93
91
  const l = i.length;
94
92
  for (e = 0, t = ""; e < l; ) {
95
93
  if (o = i.charCodeAt(e++) & 255, e === l) {
96
94
  t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4), t += "==";
97
95
  break;
98
96
  }
99
- if (n = i.charCodeAt(e++), e === l) {
100
- t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (n & 240) >> 4), t += h.charAt((n & 15) << 2), t += "=";
97
+ if (s = i.charCodeAt(e++), e === l) {
98
+ t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (s & 240) >> 4), t += h.charAt((s & 15) << 2), t += "=";
101
99
  break;
102
100
  }
103
- u = i.charCodeAt(e++), t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (n & 240) >> 4), t += h.charAt((n & 15) << 2 | (u & 192) >> 6), t += h.charAt(u & 63);
101
+ u = i.charCodeAt(e++), t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4 | (s & 240) >> 4), t += h.charAt((s & 15) << 2 | (u & 192) >> 6), t += h.charAt(u & 63);
104
102
  }
105
103
  return t;
106
104
  }
107
- const H = function(i) {
105
+ const V = function(i) {
108
106
  return i = i.replace(/\+/g, "-"), i = i.replace(/\//g, "_"), i;
109
- }, Q = (i) => new window.OSS(i);
107
+ }, J = (i) => new window.OSS(i);
110
108
  function O(i, t = "") {
111
109
  return t.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? t : i + t;
112
110
  }
113
- const W = {
111
+ const H = {
114
112
  name: "FyUpload",
115
- mixins: [N, B],
113
+ mixins: [R, I],
116
114
  props: {
117
115
  qiniu: Object,
118
116
  ali: Object,
@@ -216,13 +214,13 @@ const W = {
216
214
  return (this.text || []).forEach((t, e) => {
217
215
  if (t) {
218
216
  const o = this.isObject ? t[this.labelKey] : t.substring(t.lastIndexOf("/") + 1);
219
- let n = this.isObject ? t[this.valueKey] : t;
220
- n = O(this.homeUrl, n), i.push({
217
+ let s = this.isObject ? t[this.valueKey] : t;
218
+ s = O(this.homeUrl, s), i.push({
221
219
  uid: `${e}`,
222
220
  status: "done",
223
- type: this.isMediaType(n),
221
+ type: this.isMediaType(s),
224
222
  name: o,
225
- url: n
223
+ url: s
226
224
  });
227
225
  }
228
226
  }), i;
@@ -295,10 +293,10 @@ const W = {
295
293
  return;
296
294
  }
297
295
  const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
298
- let n = {}, u = {};
296
+ let s = {}, u = {};
299
297
  const l = new FormData(), p = () => {
300
298
  const f = (x) => {
301
- let v = this.action;
299
+ let _ = this.action;
302
300
  for (const r in this.data)
303
301
  l.append(r, this.data[r]);
304
302
  const C = x || t;
@@ -307,23 +305,23 @@ const W = {
307
305
  A.logs("CryptoJS"), this.hide();
308
306
  return;
309
307
  }
310
- n = this.qiniu || this.$AVUE.qiniu;
311
- const r = M(n.AK, n.SK, {
312
- scope: n.scope,
313
- deadline: (/* @__PURE__ */ new Date()).getTime() + n.deadline * 3600
308
+ s = this.qiniu || this.$AVUE.qiniu;
309
+ const r = D(s.AK, s.SK, {
310
+ scope: s.scope,
311
+ deadline: (/* @__PURE__ */ new Date()).getTime() + s.deadline * 3600
314
312
  });
315
- l.append("token", r), v = n.bucket;
313
+ l.append("token", r), _ = s.bucket;
316
314
  } else if (this.isAliOss) {
317
315
  if (!window.OSS) {
318
316
  A.logs("AliOSS"), this.hide();
319
317
  return;
320
318
  }
321
- n = this.ali || this.$AVUE.ali, u = Q(n);
319
+ s = this.ali || this.$AVUE.ali, u = J(s);
322
320
  }
323
321
  (this.isAliOss ? u.put(C.name, C, {
324
322
  headers: this.headers
325
- }) : this.$axios.post(v, l, { headers: o })).then((r) => {
326
- this.res = {}, this.isQiniuOss && (r.data.key = n.url + r.data.key), this.res = L(this.isAliOss ? r : r.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
323
+ }) : this.$axios.post(_, l, { headers: o })).then((r) => {
324
+ this.res = {}, this.isQiniuOss && (r.data.key = s.url + r.data.key), this.res = N(this.isAliOss ? r : r.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
327
325
  }).catch((r) => {
328
326
  this.hide(r);
329
327
  });
@@ -335,7 +333,7 @@ const W = {
335
333
  return;
336
334
  }
337
335
  const S = () => {
338
- b(this.canvasOption) ? p() : q(t, this.canvasOption, (f) => {
336
+ b(this.canvasOption) ? p() : L(t, this.canvasOption, (f) => {
339
337
  t = f, p();
340
338
  });
341
339
  };
@@ -343,8 +341,8 @@ const W = {
343
341
  const x = Object.assign(this.cropperOption, {
344
342
  img: f,
345
343
  type: "file",
346
- callback: (v) => {
347
- t = v, S();
344
+ callback: (_) => {
345
+ t = _, S();
348
346
  },
349
347
  cancel: () => {
350
348
  this.loading = !1;
@@ -374,25 +372,25 @@ const W = {
374
372
  }
375
373
  }
376
374
  };
377
- var X = function() {
375
+ var Q = function() {
378
376
  var t = this, e = t._self._c;
379
- return e("div", { directives: [{ name: "loading", rawName: "v-loading.lock", value: t.loading, expression: "loading", modifiers: { lock: !0 } }], staticClass: "avue-upload", attrs: { "element-loading-text": t.loadText } }, [e(I, { key: t.reload, class: { "avue-upload--list": t.listType === "picture-img", "avue-upload--upload": t.disabled }, attrs: { action: t.action, "on-remove": t.handleRemove, accept: t.acceptList, "before-remove": t.beforeRemove, multiple: t.multiple, "on-preview": t.handlePreview, limit: t.limit, "http-request": t.httpUpload, readonly: t.readonly, drag: t.dragFile, "show-file-list": t.isPictureImg ? !1 : t.showFileList, "list-type": t.listType, "on-change": t.handleFileChange, "on-exceed": t.handleExceed, disabled: t.disabled, "file-list": t.fileList }, nativeOn: { click: function(o) {
377
+ return e("div", { directives: [{ name: "loading", rawName: "v-loading.lock", value: t.loading, expression: "loading", modifiers: { lock: !0 } }], staticClass: "avue-upload", attrs: { "element-loading-text": t.loadText } }, [e("ElUpload", { key: t.reload, class: { "avue-upload--list": t.listType === "picture-img", "avue-upload--upload": t.disabled }, attrs: { action: t.action, "on-remove": t.handleRemove, accept: t.acceptList, "before-remove": t.beforeRemove, multiple: t.multiple, "on-preview": t.handlePreview, limit: t.limit, "http-request": t.httpUpload, readonly: t.readonly, drag: t.dragFile, "show-file-list": t.isPictureImg ? !1 : t.showFileList, "list-type": t.listType, "on-change": t.handleFileChange, "on-exceed": t.handleExceed, disabled: t.disabled, "file-list": t.fileList }, nativeOn: { click: function(o) {
380
378
  return t.handleClick.apply(null, arguments);
381
379
  } }, scopedSlots: t._u([{ key: "tip", fn: function() {
382
380
  return [e("div", { staticClass: "el-upload__tip", domProps: { innerHTML: t._s(t.tip) } })];
383
381
  }, proxy: !0 }, { key: "file", fn: function({ file: o }) {
384
- return [t.$scopedSlots.default ? t._t("default", null, { file: o }) : t.listType === "picture-card" ? e("span", [t.isMediaType(o.url) ? e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }) : e("i", { staticClass: "avue-upload__avatar el-icon-document" }), e("span", { staticClass: "el-upload-list__item-actions" }, [e("span", { staticClass: "el-upload-list__item-preview" }, [e("i", { staticClass: "el-icon-zoom-in", on: { click: function(n) {
385
- return n.stopPropagation(), t.handlePreview(o);
386
- } } })]), e("span", { staticClass: "el-upload-list__item-delete" }, [t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(n) {
387
- return n.stopPropagation(), t.handleRemove(o);
388
- } } })])])], 1) : t.listType === "picture" ? e("span", { on: { click: function(n) {
389
- return n.stopPropagation(), t.handlePreview(o);
390
- } } }, [e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }), e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), e("i", { staticClass: "el-icon-close", on: { click: function(n) {
391
- return n.stopPropagation(), t.handleRemove(o);
392
- } } })], 1) : e("span", { on: { click: function(n) {
393
- return n.stopPropagation(), t.handlePreview(o);
394
- } } }, [e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : e("i", { staticClass: "el-icon-close", on: { click: function(n) {
395
- return n.stopPropagation(), t.handleRemove(o);
382
+ return [t.$scopedSlots.default ? t._t("default", null, { file: o }) : t.listType === "picture-card" ? e("span", [t.isMediaType(o.url) ? e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }) : e("i", { staticClass: "avue-upload__avatar el-icon-document" }), e("span", { staticClass: "el-upload-list__item-actions" }, [e("span", { staticClass: "el-upload-list__item-preview" }, [e("i", { staticClass: "el-icon-zoom-in", on: { click: function(s) {
383
+ return s.stopPropagation(), t.handlePreview(o);
384
+ } } })]), e("span", { staticClass: "el-upload-list__item-delete" }, [t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(s) {
385
+ return s.stopPropagation(), t.handleRemove(o);
386
+ } } })])])], 1) : t.listType === "picture" ? e("span", { on: { click: function(s) {
387
+ return s.stopPropagation(), t.handlePreview(o);
388
+ } } }, [e(o.type, { tag: "Component", staticClass: "el-upload-list__item-thumbnail", attrs: { src: o.url } }), e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), e("i", { staticClass: "el-icon-close", on: { click: function(s) {
389
+ return s.stopPropagation(), t.handleRemove(o);
390
+ } } })], 1) : e("span", { on: { click: function(s) {
391
+ return s.stopPropagation(), t.handlePreview(o);
392
+ } } }, [e("a", { staticClass: "el-upload-list__item-name" }, [e("i", { staticClass: "el-icon-document" }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : e("i", { staticClass: "el-icon-close", on: { click: function(s) {
393
+ return s.stopPropagation(), t.handleRemove(o);
396
394
  } } })])];
397
395
  } }], null, !0) }, [t.listType === "picture-card" ? [e("i", { staticClass: "el-icon-plus" })] : t.listType === "picture-img" ? [t.$scopedSlots.default ? t._t("default", null, { file: { url: t.imgUrl } }) : [t.isMediaType(t.imgUrl) ? e(t.isMediaType(t.imgUrl), { tag: "Component", staticClass: "avue-upload__avatar", attrs: { src: t.imgUrl }, on: { mouseover: function(o) {
398
396
  t.menu = !0;
@@ -408,16 +406,16 @@ var X = function() {
408
406
  return o.stopPropagation(), t.handlePreview({ url: t.imgUrl });
409
407
  } } }), t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(o) {
410
408
  return o.stopPropagation(), t.handleDelete(t.imgUrl);
411
- } } })]) : t._e()]] : t.dragFile ? [e("i", { staticClass: "el-icon-upload" }), e("div", { staticClass: "el-upload__text" }, [e("em", [t._v(t._s(t.fileText || "上传"))])])] : [e(R, { attrs: { icon: "el-icon-upload", size: t.size, type: "primary" } }, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
412
- }, Y = [], G = /* @__PURE__ */ D(
409
+ } } })]) : t._e()]] : t.dragFile ? [e("i", { staticClass: "el-icon-upload" }), e("div", { staticClass: "el-upload__text" }, [e("em", [t._v(t._s(t.fileText || "上传"))])])] : [e("ElButton", { attrs: { icon: "el-icon-upload", size: t.size, type: "primary" } }, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
410
+ }, W = [], X = /* @__PURE__ */ K(
411
+ H,
412
+ Q,
413
413
  W,
414
- X,
415
- Y,
416
414
  !1,
417
415
  null,
418
416
  null
419
417
  );
420
- const at = G.exports;
418
+ const it = X.exports;
421
419
  export {
422
- at as default
420
+ it as default
423
421
  };
@@ -1,7 +1,5 @@
1
- import l from "element-ui/lib/step";
2
- import i from "element-ui/lib/steps";
3
- import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- const u = {
1
+ import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const i = {
5
3
  name: "GuideSteps",
6
4
  props: {
7
5
  value: {
@@ -47,28 +45,28 @@ const u = {
47
45
  }
48
46
  }
49
47
  };
50
- var p = function() {
48
+ var u = function() {
51
49
  var e = this, a = e._self._c;
52
- return a(i, { staticClass: "guide-steps", attrs: { "align-center": "" } }, e._l(e.steps, function(s, r) {
53
- return a(l, { key: s.label, class: [
50
+ return a("ElSteps", { staticClass: "guide-steps", attrs: { "align-center": "" } }, e._l(e.steps, function(s, r) {
51
+ return a("ElStep", { key: s.label, class: [
54
52
  {
55
53
  "current important": e.value === r,
56
54
  disabled: !e.available(r),
57
55
  available: !e.ready[r] && e.available(r)
58
56
  }
59
- ], attrs: { status: e.ready[r] ? "success" : "", title: s.label }, nativeOn: { click: function(_) {
57
+ ], attrs: { status: e.ready[r] ? "success" : "", title: s.label }, nativeOn: { click: function(p) {
60
58
  return e.activeStep(r);
61
59
  } } });
62
60
  }), 1);
63
- }, o = [], c = /* @__PURE__ */ n(
61
+ }, n = [], c = /* @__PURE__ */ l(
62
+ i,
64
63
  u,
65
- p,
66
- o,
64
+ n,
67
65
  !1,
68
66
  null,
69
67
  null
70
68
  );
71
- const v = c.exports;
69
+ const o = c.exports;
72
70
  export {
73
- v as default
71
+ o as default
74
72
  };
@@ -1,6 +1,5 @@
1
- import r from "../element-dialog/index.mjs";
2
- import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
- const s = {
1
+ import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
+ const a = {
4
3
  name: "IframeWindow",
5
4
  props: {
6
5
  title: {
@@ -14,20 +13,20 @@ const s = {
14
13
  visible: Boolean
15
14
  }
16
15
  };
17
- var a = function() {
16
+ var n = function() {
18
17
  var e = this, t = e._self._c;
19
- return t(r, e._g(e._b({ attrs: { "custom-class": "iframe-window", embed: "", height: "60vh", title: e.title, "show-full-screen": "", visible: e.visible }, scopedSlots: e._u([{ key: "default", fn: function() {
18
+ return t("ElementDialog", e._g(e._b({ attrs: { "custom-class": "iframe-window", embed: "", height: "60vh", title: e.title, "show-full-screen": "", visible: e.visible }, scopedSlots: e._u([{ key: "default", fn: function() {
20
19
  return [t("iframe", { staticClass: "iframe-window-iframe", attrs: { src: e.url, frameborder: "0" } })];
21
20
  }, proxy: !0 }]) }, "ElementDialog", e.$attrs, !1), e.$listeners));
22
- }, i = [], l = /* @__PURE__ */ n(
23
- s,
21
+ }, s = [], l = /* @__PURE__ */ r(
24
22
  a,
25
- i,
23
+ n,
24
+ s,
26
25
  !1,
27
26
  null,
28
27
  null
29
28
  );
30
- const _ = l.exports;
29
+ const f = l.exports;
31
30
  export {
32
- _ as default
31
+ f as default
33
32
  };
@@ -1,12 +1,10 @@
1
- import r from "element-ui/lib/button";
2
- import n from "../element-dialog/index.mjs";
3
- import { B as s } from "../chunks/util.DI42t5GU.mjs";
4
- import { VueCropper as p } from "vue-cropper";
5
- import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
- const c = {
1
+ import { B as r } from "../chunks/util.DqFv_pWg.mjs";
2
+ import { VueCropper as n } from "vue-cropper";
3
+ import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const p = {
7
5
  name: "ImageCropper",
8
6
  components: {
9
- VueCropper: p
7
+ VueCropper: n
10
8
  },
11
9
  data() {
12
10
  return {
@@ -20,8 +18,8 @@ const c = {
20
18
  this.visible = !0;
21
19
  },
22
20
  // 图片缩放
23
- changeScale(t) {
24
- t = t || 1, this.$refs.cropper.changeScale(t);
21
+ changeScale(o) {
22
+ o = o || 1, this.$refs.cropper.changeScale(o);
25
23
  },
26
24
  // 向左旋转
27
25
  rotateLeft() {
@@ -32,44 +30,44 @@ const c = {
32
30
  this.$refs.cropper.rotateRight();
33
31
  },
34
32
  // 实时预览函数
35
- realTime(t) {
36
- this.previews = t;
33
+ realTime(o) {
34
+ this.previews = o;
37
35
  },
38
36
  submit() {
39
- this.visible = !1, this.$refs.cropper.getCropData((t) => {
40
- var o, i;
41
- let e = t;
42
- this.option.type === "file" && (e = s(t, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (o = this.option).callback) == null || i.call(o, e);
37
+ this.visible = !1, this.$refs.cropper.getCropData((o) => {
38
+ var t, i;
39
+ let e = o;
40
+ this.option.type === "file" && (e = r(o, `${(/* @__PURE__ */ new Date()).getTime()}.${this.option.outputType}`)), (i = (t = this.option).callback) == null || i.call(t, e);
43
41
  });
44
42
  },
45
- cancel(t) {
46
- var e, o;
47
- t == null || t(), this.visible = !1, (o = (e = this.option).cancel) == null || o.call(e), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
43
+ cancel(o) {
44
+ var e, t;
45
+ o == null || o(), this.visible = !1, (t = (e = this.option).cancel) == null || t.call(e), typeof this.option.beforeClose == "function" && this.option.beforeClose(), this.$destroy(), this.$el.remove();
48
46
  }
49
47
  }
50
48
  };
51
- var l = function() {
52
- var e = this, o = e._self._c;
53
- return o(n, { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
49
+ var a = function() {
50
+ var e = this, t = e._self._c;
51
+ return t("ElementDialog", { staticClass: "avue-cropper", attrs: { visible: e.visible, "before-close": e.cancel, title: "图片剪裁", "close-on-press-escape": !1, "close-on-click-modal": !1, "modal-append-to-body": e.$AVUE.modalAppendToBody, "append-to-body": e.$AVUE.appendToBody, width: "1000px" }, on: { "update:visible": function(i) {
54
52
  e.visible = i;
55
53
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
56
- return [o(r, { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), o(r, { attrs: { size: "small" }, on: { click: function(i) {
54
+ return [t("ElButton", { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), t("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
57
55
  return e.cancel();
58
56
  } } }, [e._v(" 取 消 ")])];
59
- }, proxy: !0 }]) }, [o("div", { staticClass: "cropper-content" }, [o("div", { staticClass: "cropper-box" }, [o("div", { staticClass: "cropper" }, [o("VueCropper", { ref: "cropper", attrs: { img: e.option.img, "output-size": e.option.outputSize, "output-type": e.option.outputType, info: e.option.info, "can-scale": e.option.canScale, "auto-crop": e.option.autoCrop, "auto-crop-width": e.option.autoCropWidth, "auto-crop-height": e.option.autoCropHeight, fixed: e.option.fixed, "fixed-number": e.option.fixedNumber, full: e.option.full, "fixed-box": e.option.fixedBox, "can-move": e.option.canMove, "can-move-box": e.option.canMoveBox, original: e.option.original, "center-box": e.option.centerBox, height: e.option.height, "info-true": e.option.infoTrue, "max-img-size": e.option.maxImgSize, enlarge: e.option.enlarge, mode: e.option.mode }, on: { realTime: e.realTime } })], 1), o("div", { staticClass: "footer-btn" }, [o(r, { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-in" }, on: { click: function(i) {
57
+ }, proxy: !0 }]) }, [t("div", { staticClass: "cropper-content" }, [t("div", { staticClass: "cropper-box" }, [t("div", { staticClass: "cropper" }, [t("VueCropper", { ref: "cropper", attrs: { img: e.option.img, "output-size": e.option.outputSize, "output-type": e.option.outputType, info: e.option.info, "can-scale": e.option.canScale, "auto-crop": e.option.autoCrop, "auto-crop-width": e.option.autoCropWidth, "auto-crop-height": e.option.autoCropHeight, fixed: e.option.fixed, "fixed-number": e.option.fixedNumber, full: e.option.full, "fixed-box": e.option.fixedBox, "can-move": e.option.canMove, "can-move-box": e.option.canMoveBox, original: e.option.original, "center-box": e.option.centerBox, height: e.option.height, "info-true": e.option.infoTrue, "max-img-size": e.option.maxImgSize, enlarge: e.option.enlarge, mode: e.option.mode }, on: { realTime: e.realTime } })], 1), t("div", { staticClass: "footer-btn" }, [t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-in" }, on: { click: function(i) {
60
58
  return e.changeScale(1);
61
- } } }), o(r, { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
59
+ } } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
62
60
  return e.changeScale(-1);
63
- } } }), o(r, { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-left" }, on: { click: e.rotateLeft } }), o(r, { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-right" }, on: { click: e.rotateRight } })], 1)]), o("div", { staticClass: "show-preview" }, [o("div", { staticClass: "preview", style: e.previews.div }, [o("img", { style: e.previews.img, attrs: { src: e.previews.url, alt: "" } })])])])]);
64
- }, m = [], f = /* @__PURE__ */ a(
65
- c,
61
+ } } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-left" }, on: { click: e.rotateLeft } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-refresh-right" }, on: { click: e.rotateRight } })], 1)]), t("div", { staticClass: "show-preview" }, [t("div", { staticClass: "preview", style: e.previews.div }, [t("img", { style: e.previews.img, attrs: { src: e.previews.url, alt: "" } })])])])]);
62
+ }, l = [], c = /* @__PURE__ */ s(
63
+ p,
64
+ a,
66
65
  l,
67
- m,
68
66
  !1,
69
67
  null,
70
68
  null
71
69
  );
72
- const _ = f.exports;
70
+ const h = c.exports;
73
71
  export {
74
- _ as default
72
+ h as default
75
73
  };
@@ -1,9 +1,7 @@
1
- import l from "element-ui/lib/carousel-item";
2
- import c from "element-ui/lib/carousel";
3
- import { v as u } from "../chunks/util.DI42t5GU.mjs";
1
+ import { i as r } from "../chunks/util.DqFv_pWg.mjs";
4
2
  import { setPx as o } from "@web-utils/core";
5
- import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
- const _ = {
3
+ import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
+ const u = {
7
5
  name: "ImagePreview",
8
6
  data() {
9
7
  return {
@@ -55,7 +53,7 @@ const _ = {
55
53
  });
56
54
  },
57
55
  isMediaType(i) {
58
- return u(i.url, i.type);
56
+ return r(i.url, i.type);
59
57
  },
60
58
  subScale() {
61
59
  this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
@@ -70,8 +68,8 @@ const _ = {
70
68
  let e = i.clientX, t = i.clientY;
71
69
  const s = 2;
72
70
  document.onmousemove = (a) => {
73
- const n = a.clientX - e, r = a.clientY - t;
74
- e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + r * s;
71
+ const n = a.clientX - e, l = a.clientY - t;
72
+ e = a.clientX, t = a.clientY, this.left = this.left + n * s, this.top = this.top + l * s;
75
73
  }, document.onmouseup = () => {
76
74
  document.onmousemove = null, document.onmouseup = null;
77
75
  };
@@ -90,8 +88,8 @@ var d = function() {
90
88
  return e.handlePrev();
91
89
  } } }, [t("i", { staticClass: "el-icon-arrow-left" })]) : e._e(), e.isRrrow ? t("span", { staticClass: "el-image-viewer__btn el-image-viewer__next", on: { click: function(s) {
92
90
  return e.handleNext();
93
- } } }, [t("i", { staticClass: "el-icon-arrow-right" })]) : e._e(), t("div", { ref: "box", staticClass: "avue-image-preview__box" }, [t(c, { ref: "carousel", attrs: { "show-indicators": !1, "initial-index": e.index, "initial-swipe": e.index, interval: 0, arrow: "never", "indicator-position": "none" }, on: { change: e.handleChange } }, e._l(e.datas, function(s, a) {
94
- return t(l, { key: a, nativeOn: { click: function(n) {
91
+ } } }, [t("i", { staticClass: "el-icon-arrow-right" })]) : e._e(), t("div", { ref: "box", staticClass: "avue-image-preview__box" }, [t("ElCarousel", { ref: "carousel", attrs: { "show-indicators": !1, "initial-index": e.index, "initial-swipe": e.index, interval: 0, arrow: "never", "indicator-position": "none" }, on: { change: e.handleChange } }, e._l(e.datas, function(s, a) {
92
+ return t("ElCarouselItem", { key: a, nativeOn: { click: function(n) {
95
93
  if (n.target !== n.currentTarget) return null;
96
94
  e.ops.closeOnClickModal && e.close();
97
95
  } } }, [e.isMediaType(s) ? t(e.isMediaType(s), { ref: "item", refInFor: !0, tag: "Component", style: [e.styleName, e.styleBoxName], attrs: { id: `avue-image-preview__${a}`, src: s.url, controls: "controls", ondragstart: "return false" }, on: { click: function(n) {
@@ -104,15 +102,15 @@ var d = function() {
104
102
  } } }), t("i", { staticClass: "el-icon-refresh-right", on: { click: function(s) {
105
103
  e.rotate = e.rotate + 90;
106
104
  } } })])])]) : e._e();
107
- }, h = [], p = /* @__PURE__ */ m(
108
- _,
105
+ }, h = [], m = /* @__PURE__ */ c(
106
+ u,
109
107
  d,
110
108
  h,
111
109
  !1,
112
110
  null,
113
111
  null
114
112
  );
115
- const x = p.exports;
113
+ const p = m.exports;
116
114
  export {
117
- x as default
115
+ p as default
118
116
  };