@web-utils/component 4.0.13 → 4.0.15

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 (171) hide show
  1. package/address-input/index.mjs +15 -13
  2. package/card/index.mjs +20 -18
  3. package/carousel/index.mjs +12 -10
  4. package/chat/index.mjs +56 -45
  5. package/chunk-file-uploader/index.mjs +378 -36
  6. package/chunk-file-uploader/style.css +1 -1
  7. package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
  8. package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
  9. package/chunks/FyForm.DriwCJ7b.mjs +765 -0
  10. package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
  11. package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
  12. package/chunks/TableColumn.BzivvXMF.mjs +337 -0
  13. package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
  14. package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
  15. package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
  16. package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
  17. package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
  18. package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
  19. package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
  20. package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
  21. package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
  22. package/color-picker/index.mjs +101 -22
  23. package/confirm-button/index.mjs +1 -1
  24. package/confirmable/index.mjs +1 -1
  25. package/data-box/index.mjs +15 -12
  26. package/data-card/index.mjs +12 -10
  27. package/data-card-text/index.mjs +12 -10
  28. package/data-display/index.mjs +17 -15
  29. package/data-icons/index.mjs +16 -13
  30. package/data-imgtext/index.mjs +18 -15
  31. package/data-operatext/index.mjs +16 -14
  32. package/data-panel/index.mjs +16 -13
  33. package/data-pay/index.mjs +20 -16
  34. package/data-price/index.mjs +16 -14
  35. package/data-progress/index.mjs +17 -13
  36. package/data-rotate/index.mjs +15 -12
  37. package/data-table-picker/index.mjs +18 -15
  38. package/data-tabs/index.mjs +15 -12
  39. package/dialog-form/index.mjs +18 -16
  40. package/dynamic-table/index.mjs +30 -25
  41. package/editable-progress/index.mjs +11 -9
  42. package/editable-tree/index.mjs +56 -52
  43. package/egd-collapse-item/index.mjs +9 -9
  44. package/element-dialog/index.mjs +23 -22
  45. package/flex-column/index.mjs +1 -1
  46. package/flex-item/index.mjs +1 -1
  47. package/flex-row/index.mjs +1 -1
  48. package/flow/index.mjs +11 -10
  49. package/flow-designer/index.mjs +1973 -699
  50. package/flow-designer/style.css +1 -1
  51. package/flow-node/index.mjs +1 -1
  52. package/flow-viewer/index.mjs +9 -9
  53. package/form-block/index.mjs +34 -32
  54. package/form-cascader/index.mjs +24 -23
  55. package/form-checkbox/index.mjs +17 -16
  56. package/form-checkbox-group/index.mjs +23 -20
  57. package/form-checkbox-group/style.css +1 -1
  58. package/form-date-picker/index.mjs +20 -18
  59. package/form-holder/index.mjs +14 -13
  60. package/form-input/index.mjs +15 -14
  61. package/form-input-cron-expression/index.mjs +22 -19
  62. package/form-input-email/index.mjs +16 -15
  63. package/form-input-id-card/index.mjs +13 -12
  64. package/form-input-number/index.mjs +17 -16
  65. package/form-input-phone-number/index.mjs +22 -21
  66. package/form-input-tag/index.mjs +15 -14
  67. package/form-input-time/index.mjs +15 -14
  68. package/form-item/index.mjs +3 -140
  69. package/form-item-group/index.mjs +31 -28
  70. package/form-radio-group/index.mjs +28 -27
  71. package/form-radio-group/style.css +1 -1
  72. package/form-select/index.mjs +23 -21
  73. package/form-switch/index.mjs +17 -16
  74. package/form-table/index.mjs +17 -16
  75. package/form-table-plus/index.mjs +22 -21
  76. package/form-textarea/index.mjs +16 -15
  77. package/form-tree-select/index.mjs +15 -14
  78. package/form-tree-select-multiple/index.mjs +15 -14
  79. package/form-view/index.mjs +39 -35
  80. package/fy-array/index.mjs +37 -33
  81. package/fy-cascader/index.mjs +17 -16
  82. package/fy-checkbox/index.mjs +13 -11
  83. package/fy-code/index.mjs +10 -10
  84. package/fy-curd/index.mjs +1147 -1123
  85. package/fy-date/index.mjs +11 -10
  86. package/fy-draggable/index.mjs +10 -9
  87. package/fy-dynamic/index.mjs +25 -22
  88. package/fy-empty/index.mjs +1 -1
  89. package/fy-form/index.mjs +15 -638
  90. package/fy-form-design/index.mjs +1165 -1127
  91. package/fy-input/index.mjs +14 -12
  92. package/fy-input-color/index.mjs +15 -13
  93. package/fy-input-icon/index.mjs +23 -20
  94. package/fy-input-map/index.mjs +31 -28
  95. package/fy-input-number/index.mjs +10 -9
  96. package/fy-input-table/index.mjs +22 -18
  97. package/fy-input-tree/index.mjs +37 -33
  98. package/fy-progress/index.mjs +10 -9
  99. package/fy-radio/index.mjs +16 -15
  100. package/fy-rate/index.mjs +11 -10
  101. package/fy-select/index.mjs +29 -25
  102. package/fy-slider/index.mjs +12 -11
  103. package/fy-switch/index.mjs +10 -9
  104. package/fy-tabs/index.mjs +17 -15
  105. package/fy-time/index.mjs +1 -1
  106. package/fy-title/index.mjs +1 -1
  107. package/fy-tree/index.mjs +24 -18
  108. package/fy-u-editor/index.mjs +1 -1
  109. package/fy-upload/index.mjs +76 -74
  110. package/guide-steps/index.mjs +13 -11
  111. package/iframe-window/index.mjs +10 -9
  112. package/image-cropper/index.mjs +30 -28
  113. package/image-preview/index.mjs +14 -12
  114. package/index.mjs +72 -72
  115. package/input-number/index.mjs +14 -13
  116. package/input-number-range/index.mjs +12 -11
  117. package/license/index.mjs +1 -1
  118. package/login/index.mjs +26 -21
  119. package/nav-bar/index.mjs +10 -9
  120. package/notice/index.mjs +10 -9
  121. package/package.json +1 -1
  122. package/page-index/index.mjs +13 -12
  123. package/page-index-top/index.mjs +28 -23
  124. package/page-skeleton/index.mjs +14 -14
  125. package/page-skeleton-new/index.mjs +9 -8
  126. package/pageable-table/index.mjs +182 -172
  127. package/pageable-table/style.css +1 -1
  128. package/pageable-view/index.mjs +16 -15
  129. package/picker-table-view/index.mjs +58 -49
  130. package/present-view/index.mjs +39 -35
  131. package/record-video/index.mjs +1 -1
  132. package/resize-observer/index.mjs +1 -1
  133. package/search/index.mjs +22 -20
  134. package/search-popover/index.mjs +1 -1
  135. package/sign/index.mjs +1 -1
  136. package/skeleton-panel/index.mjs +10 -9
  137. package/split-pane/index.mjs +37 -36
  138. package/static-pageable-table/index.mjs +13 -11
  139. package/sub-table/index.mjs +49 -36
  140. package/sub-table-plus/index.mjs +18 -229
  141. package/swiper/index.mjs +12 -11
  142. package/table-column/index.mjs +3 -223
  143. package/table-view/index.mjs +60 -52
  144. package/tabs-view/index.mjs +19 -17
  145. package/tag-render/index.mjs +18 -16
  146. package/text-ellipsis/index.mjs +10 -9
  147. package/toolbar/index.mjs +14 -13
  148. package/toolbar-button/index.mjs +14 -13
  149. package/verify/index.mjs +1 -1
  150. package/vue-cron/index.mjs +267 -259
  151. package/watermark/index.mjs +1 -1
  152. package/web-types.json +1 -1
  153. package/x-input-tag/index.mjs +24 -21
  154. package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
  155. package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
  156. package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
  157. package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
  158. package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
  159. package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
  160. package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
  161. package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
  162. package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
  163. package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
  164. package/chunks/core.0Exl13Mz.mjs +0 -54
  165. package/chunks/dictionary.DGt59Ir7.mjs +0 -68
  166. package/chunks/form-item.LWjePsPa.mjs +0 -233
  167. package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
  168. package/chunks/utilSelf.Csq1766E.mjs +0 -48
  169. package/chunks/utils.DRcxC1Fb.mjs +0 -60
  170. package/element-listeners/style.css +0 -1
  171. package/element-multi-instance/style.css +0 -1
@@ -1,13 +1,15 @@
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";
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";
3
5
  import { p as A } from "../chunks/packages.ByyangTp.mjs";
4
6
  import { isBlank as b } from "@web-utils/core";
5
- import { n as K } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
7
+ import { n as D } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
8
  let d, g;
7
9
  const w = {
8
10
  width: 200,
9
11
  height: 200
10
- }, n = {
12
+ }, s = {
11
13
  text: "avueJS",
12
14
  // 文字
13
15
  fontFamily: "microsoft yahei",
@@ -31,18 +33,18 @@ function k(i, t) {
31
33
  t(o.target.result);
32
34
  };
33
35
  }
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;
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;
39
41
  }
40
42
  function C(y) {
41
43
  const c = new Image();
42
44
  c.src = y, c.onload = function() {
43
45
  const m = c.width, a = c.height;
44
46
  r(m, a), g.drawImage(c, 0, 0, m, a), P(m, a);
45
- const v = document.getElementById("canvas").toDataURL(i.type, n.ratio), F = B(v, i.name);
47
+ const _ = document.getElementById("canvas").toDataURL(i.type, s.ratio), F = K(_, i.name);
46
48
  e == null || e(F);
47
49
  };
48
50
  }
@@ -50,67 +52,67 @@ function L(i, t = {}, e) {
50
52
  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;
51
53
  }
52
54
  function P(y, c) {
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);
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);
55
57
  }
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}`;
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}`;
60
62
  const $ = Number(g.measureText(y).width);
61
63
  a = a - $;
62
- const z = a / w.width, j = v / w.height;
63
- return a = z * c, v = j * m, {
64
+ const z = a / w.width, j = _ / w.height;
65
+ return a = z * c, _ = j * m, {
64
66
  x: a,
65
- y: v,
66
- fontSize: U
67
+ y: _,
68
+ fontSize: E
67
69
  };
68
70
  }
69
71
  }
70
- const D = (i, t, e) => {
72
+ const M = (i, t, e) => {
71
73
  const o = JSON.stringify(e);
72
74
  window.__ENV__ === "development" && (console == null || console.log("put_policy = ", o));
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);
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);
76
78
  window.__ENV__ === "development" && (console == null || console.log("encoded_signed=", l));
77
- const p = `${i}:${V(l)}:${s}`;
79
+ const p = `${i}:${H(l)}:${n}`;
78
80
  return window.__ENV__ === "development" && (console == null || console.log("upload_token=", p)), p;
79
81
  };
80
- function q(i) {
82
+ function V(i) {
81
83
  let t, e, o;
82
84
  t = "";
83
- const s = i.length;
84
- for (e = 0; e < s; e++)
85
+ const n = i.length;
86
+ for (e = 0; e < n; e++)
85
87
  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));
86
88
  return t;
87
89
  }
88
90
  const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
89
- function M(i) {
90
- let t, e, o, s, u;
91
+ function J(i) {
92
+ let t, e, o, n, u;
91
93
  const l = i.length;
92
94
  for (e = 0, t = ""; e < l; ) {
93
95
  if (o = i.charCodeAt(e++) & 255, e === l) {
94
96
  t += h.charAt(o >> 2), t += h.charAt((o & 3) << 4), t += "==";
95
97
  break;
96
98
  }
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 += "=";
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 += "=";
99
101
  break;
100
102
  }
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);
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);
102
104
  }
103
105
  return t;
104
106
  }
105
- const V = function(i) {
107
+ const H = function(i) {
106
108
  return i = i.replace(/\+/g, "-"), i = i.replace(/\//g, "_"), i;
107
- }, J = (i) => new window.OSS(i);
109
+ }, Q = (i) => new window.OSS(i);
108
110
  function O(i, t = "") {
109
111
  return t.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? t : i + t;
110
112
  }
111
- const H = {
113
+ const W = {
112
114
  name: "FyUpload",
113
- mixins: [R, I],
115
+ mixins: [N, B],
114
116
  props: {
115
117
  qiniu: Object,
116
118
  ali: Object,
@@ -214,13 +216,13 @@ const H = {
214
216
  return (this.text || []).forEach((t, e) => {
215
217
  if (t) {
216
218
  const o = this.isObject ? t[this.labelKey] : t.substring(t.lastIndexOf("/") + 1);
217
- let s = this.isObject ? t[this.valueKey] : t;
218
- s = O(this.homeUrl, s), i.push({
219
+ let n = this.isObject ? t[this.valueKey] : t;
220
+ n = O(this.homeUrl, n), i.push({
219
221
  uid: `${e}`,
220
222
  status: "done",
221
- type: this.isMediaType(s),
223
+ type: this.isMediaType(n),
222
224
  name: o,
223
- url: s
225
+ url: n
224
226
  });
225
227
  }
226
228
  }), i;
@@ -293,10 +295,10 @@ const H = {
293
295
  return;
294
296
  }
295
297
  const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
296
- let s = {}, u = {};
298
+ let n = {}, u = {};
297
299
  const l = new FormData(), p = () => {
298
300
  const f = (x) => {
299
- let _ = this.action;
301
+ let v = this.action;
300
302
  for (const r in this.data)
301
303
  l.append(r, this.data[r]);
302
304
  const C = x || t;
@@ -305,23 +307,23 @@ const H = {
305
307
  A.logs("CryptoJS"), this.hide();
306
308
  return;
307
309
  }
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
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
312
314
  });
313
- l.append("token", r), _ = s.bucket;
315
+ l.append("token", r), v = n.bucket;
314
316
  } else if (this.isAliOss) {
315
317
  if (!window.OSS) {
316
318
  A.logs("AliOSS"), this.hide();
317
319
  return;
318
320
  }
319
- s = this.ali || this.$AVUE.ali, u = J(s);
321
+ n = this.ali || this.$AVUE.ali, u = Q(n);
320
322
  }
321
323
  (this.isAliOss ? u.put(C.name, C, {
322
324
  headers: this.headers
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();
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();
325
327
  }).catch((r) => {
326
328
  this.hide(r);
327
329
  });
@@ -333,7 +335,7 @@ const H = {
333
335
  return;
334
336
  }
335
337
  const S = () => {
336
- b(this.canvasOption) ? p() : L(t, this.canvasOption, (f) => {
338
+ b(this.canvasOption) ? p() : q(t, this.canvasOption, (f) => {
337
339
  t = f, p();
338
340
  });
339
341
  };
@@ -341,8 +343,8 @@ const H = {
341
343
  const x = Object.assign(this.cropperOption, {
342
344
  img: f,
343
345
  type: "file",
344
- callback: (_) => {
345
- t = _, S();
346
+ callback: (v) => {
347
+ t = v, S();
346
348
  },
347
349
  cancel: () => {
348
350
  this.loading = !1;
@@ -372,25 +374,25 @@ const H = {
372
374
  }
373
375
  }
374
376
  };
375
- var Q = function() {
377
+ var X = function() {
376
378
  var t = this, e = t._self._c;
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) {
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) {
378
380
  return t.handleClick.apply(null, arguments);
379
381
  } }, scopedSlots: t._u([{ key: "tip", fn: function() {
380
382
  return [e("div", { staticClass: "el-upload__tip", domProps: { innerHTML: t._s(t.tip) } })];
381
383
  }, proxy: !0 }, { key: "file", fn: function({ file: 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);
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);
394
396
  } } })])];
395
397
  } }], 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) {
396
398
  t.menu = !0;
@@ -406,16 +408,16 @@ var Q = function() {
406
408
  return o.stopPropagation(), t.handlePreview({ url: t.imgUrl });
407
409
  } } }), t.disabled ? t._e() : e("i", { staticClass: "el-icon-delete", on: { click: function(o) {
408
410
  return o.stopPropagation(), t.handleDelete(t.imgUrl);
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,
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(
413
413
  W,
414
+ X,
415
+ Y,
414
416
  !1,
415
417
  null,
416
418
  null
417
419
  );
418
- const it = X.exports;
420
+ const at = G.exports;
419
421
  export {
420
- it as default
422
+ at as default
421
423
  };
@@ -1,5 +1,7 @@
1
- import { n as l } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const i = {
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 = {
3
5
  name: "GuideSteps",
4
6
  props: {
5
7
  value: {
@@ -45,28 +47,28 @@ const i = {
45
47
  }
46
48
  }
47
49
  };
48
- var u = function() {
50
+ var p = function() {
49
51
  var e = this, a = e._self._c;
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: [
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: [
52
54
  {
53
55
  "current important": e.value === r,
54
56
  disabled: !e.available(r),
55
57
  available: !e.ready[r] && e.available(r)
56
58
  }
57
- ], attrs: { status: e.ready[r] ? "success" : "", title: s.label }, nativeOn: { click: function(p) {
59
+ ], attrs: { status: e.ready[r] ? "success" : "", title: s.label }, nativeOn: { click: function(_) {
58
60
  return e.activeStep(r);
59
61
  } } });
60
62
  }), 1);
61
- }, n = [], c = /* @__PURE__ */ l(
62
- i,
63
+ }, o = [], c = /* @__PURE__ */ n(
63
64
  u,
64
- n,
65
+ p,
66
+ o,
65
67
  !1,
66
68
  null,
67
69
  null
68
70
  );
69
- const o = c.exports;
71
+ const v = c.exports;
70
72
  export {
71
- o as default
73
+ v as default
72
74
  };
@@ -1,5 +1,6 @@
1
- import { n as r } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
2
- const a = {
1
+ import r from "../element-dialog/index.mjs";
2
+ import { n } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
3
+ const s = {
3
4
  name: "IframeWindow",
4
5
  props: {
5
6
  title: {
@@ -13,20 +14,20 @@ const a = {
13
14
  visible: Boolean
14
15
  }
15
16
  };
16
- var n = function() {
17
+ var a = function() {
17
18
  var e = this, t = e._self._c;
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() {
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() {
19
20
  return [t("iframe", { staticClass: "iframe-window-iframe", attrs: { src: e.url, frameborder: "0" } })];
20
21
  }, proxy: !0 }]) }, "ElementDialog", e.$attrs, !1), e.$listeners));
21
- }, s = [], l = /* @__PURE__ */ r(
22
- a,
23
- n,
22
+ }, i = [], l = /* @__PURE__ */ n(
24
23
  s,
24
+ a,
25
+ i,
25
26
  !1,
26
27
  null,
27
28
  null
28
29
  );
29
- const f = l.exports;
30
+ const _ = l.exports;
30
31
  export {
31
- f as default
32
+ _ as default
32
33
  };
@@ -1,10 +1,12 @@
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 = {
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 = {
5
7
  name: "ImageCropper",
6
8
  components: {
7
- VueCropper: n
9
+ VueCropper: p
8
10
  },
9
11
  data() {
10
12
  return {
@@ -18,8 +20,8 @@ const p = {
18
20
  this.visible = !0;
19
21
  },
20
22
  // 图片缩放
21
- changeScale(o) {
22
- o = o || 1, this.$refs.cropper.changeScale(o);
23
+ changeScale(t) {
24
+ t = t || 1, this.$refs.cropper.changeScale(t);
23
25
  },
24
26
  // 向左旋转
25
27
  rotateLeft() {
@@ -30,44 +32,44 @@ const p = {
30
32
  this.$refs.cropper.rotateRight();
31
33
  },
32
34
  // 实时预览函数
33
- realTime(o) {
34
- this.previews = o;
35
+ realTime(t) {
36
+ this.previews = t;
35
37
  },
36
38
  submit() {
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);
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);
41
43
  });
42
44
  },
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();
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();
46
48
  }
47
49
  }
48
50
  };
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) {
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) {
52
54
  e.visible = i;
53
55
  } }, scopedSlots: e._u([{ key: "footer", fn: function() {
54
- return [t("ElButton", { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), t("ElButton", { attrs: { size: "small" }, on: { click: function(i) {
56
+ return [o(r, { attrs: { size: "small", type: "primary" }, on: { click: e.submit } }, [e._v(" 确 定 ")]), o(r, { attrs: { size: "small" }, on: { click: function(i) {
55
57
  return e.cancel();
56
58
  } } }, [e._v(" 取 消 ")])];
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) {
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) {
58
60
  return e.changeScale(1);
59
- } } }), t("ElButton", { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
61
+ } } }), o(r, { attrs: { size: "mini", type: "primary", icon: "el-icon-zoom-out" }, on: { click: function(i) {
60
62
  return e.changeScale(-1);
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,
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,
65
66
  l,
67
+ m,
66
68
  !1,
67
69
  null,
68
70
  null
69
71
  );
70
- const h = c.exports;
72
+ const _ = f.exports;
71
73
  export {
72
- h as default
74
+ _ as default
73
75
  };
@@ -1,7 +1,9 @@
1
- import { i as r } from "../chunks/util.DqFv_pWg.mjs";
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";
2
4
  import { setPx as o } from "@web-utils/core";
3
- import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
4
- const u = {
5
+ import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
6
+ const _ = {
5
7
  name: "ImagePreview",
6
8
  data() {
7
9
  return {
@@ -53,7 +55,7 @@ const u = {
53
55
  });
54
56
  },
55
57
  isMediaType(i) {
56
- return r(i.url, i.type);
58
+ return u(i.url, i.type);
57
59
  },
58
60
  subScale() {
59
61
  this.scale !== 0.2 && (this.scale = parseFloat((this.scale - 0.2).toFixed(2)));
@@ -68,8 +70,8 @@ const u = {
68
70
  let e = i.clientX, t = i.clientY;
69
71
  const s = 2;
70
72
  document.onmousemove = (a) => {
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;
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;
73
75
  }, document.onmouseup = () => {
74
76
  document.onmousemove = null, document.onmouseup = null;
75
77
  };
@@ -88,8 +90,8 @@ var d = function() {
88
90
  return e.handlePrev();
89
91
  } } }, [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) {
90
92
  return e.handleNext();
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) {
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) {
93
95
  if (n.target !== n.currentTarget) return null;
94
96
  e.ops.closeOnClickModal && e.close();
95
97
  } } }, [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) {
@@ -102,15 +104,15 @@ var d = function() {
102
104
  } } }), t("i", { staticClass: "el-icon-refresh-right", on: { click: function(s) {
103
105
  e.rotate = e.rotate + 90;
104
106
  } } })])])]) : e._e();
105
- }, h = [], m = /* @__PURE__ */ c(
106
- u,
107
+ }, h = [], p = /* @__PURE__ */ m(
108
+ _,
107
109
  d,
108
110
  h,
109
111
  !1,
110
112
  null,
111
113
  null
112
114
  );
113
- const p = m.exports;
115
+ const x = p.exports;
114
116
  export {
115
- p as default
117
+ x as default
116
118
  };