@web-utils/component 3.0.4 → 3.0.5

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 (109) hide show
  1. package/address-input/index.mjs +22 -24
  2. package/awesome-button/index.mjs +29 -30
  3. package/card/index.mjs +40 -42
  4. package/carousel/index.mjs +25 -27
  5. package/chat/index.mjs +57 -67
  6. package/chunks/FormTemp.7f91629d.mjs +165 -0
  7. package/chunks/confirmable-mixin.817b542f.mjs +116 -0
  8. package/chunks/{dataformat.e655611c.mjs → dataformat.f995e2f9.mjs} +3 -3
  9. package/chunks/{event.10295951.mjs → event.b5d855dd.mjs} +1 -1
  10. package/chunks/{form-input-mixin.78a567bc.mjs → form-input-mixin.4632ad36.mjs} +1 -1
  11. package/chunks/{form-item-mixin.57cb2019.mjs → form-item-mixin.ad148e7b.mjs} +13 -13
  12. package/color-picker/index.mjs +128 -0
  13. package/confirm-button/index.mjs +1 -1
  14. package/confirmable/index.mjs +1 -1
  15. package/data-box/index.mjs +32 -34
  16. package/data-card/index.mjs +33 -35
  17. package/data-cardtext/index.mjs +27 -29
  18. package/data-display/index.mjs +33 -35
  19. package/data-icons/index.mjs +28 -30
  20. package/data-imgtext/index.mjs +27 -30
  21. package/data-operatext/index.mjs +39 -41
  22. package/data-panel/index.mjs +36 -38
  23. package/data-pay/index.mjs +20 -23
  24. package/data-price/index.mjs +32 -34
  25. package/data-progress/index.mjs +27 -30
  26. package/data-rotate/index.mjs +17 -19
  27. package/data-table-picker/index.mjs +22 -23
  28. package/data-tabs/index.mjs +31 -33
  29. package/dialog-form/index.mjs +22 -27
  30. package/dynamic-table/index.mjs +36 -40
  31. package/editable-progress/index.mjs +14 -16
  32. package/editable-tree/index.mjs +139 -143
  33. package/egd-collapse-item/index.mjs +2 -1
  34. package/element-dialog/index.mjs +24 -25
  35. package/flow-designer/index.mjs +1095 -1111
  36. package/form-block/index.mjs +22 -24
  37. package/form-cascader/index.mjs +20 -20
  38. package/form-checkbox-group/index.mjs +24 -25
  39. package/form-date-picker/index.mjs +18 -19
  40. package/form-holder/index.mjs +14 -15
  41. package/form-input/index.mjs +23 -23
  42. package/form-input-email/index.mjs +17 -17
  43. package/form-input-id-card/index.mjs +24 -24
  44. package/form-input-number/index.mjs +1 -1
  45. package/form-input-phone-number/index.mjs +26 -26
  46. package/form-input-tag/index.mjs +1 -1
  47. package/form-input-time/index.mjs +17 -17
  48. package/form-item/index.mjs +54 -56
  49. package/form-item-group/index.mjs +31 -33
  50. package/form-radio-group/index.mjs +51 -52
  51. package/form-select/index.mjs +31 -32
  52. package/form-switch/index.mjs +22 -22
  53. package/form-textarea/index.mjs +20 -20
  54. package/fy-array/index.mjs +61 -65
  55. package/fy-cascader/index.mjs +19 -20
  56. package/fy-checkbox/index.mjs +32 -37
  57. package/fy-code/index.mjs +13 -10
  58. package/fy-curd/index.mjs +638 -660
  59. package/fy-date/index.mjs +20 -21
  60. package/fy-draggable/index.mjs +19 -20
  61. package/fy-dynamic/index.mjs +26 -27
  62. package/fy-form/index.mjs +111 -122
  63. package/fy-form-design/index.mjs +1238 -1270
  64. package/fy-input/index.mjs +15 -17
  65. package/fy-input-color/index.mjs +25 -27
  66. package/fy-input-icon/index.mjs +20 -21
  67. package/fy-input-map/index.mjs +22 -24
  68. package/fy-input-number/index.mjs +22 -23
  69. package/fy-input-table/index.mjs +15 -17
  70. package/fy-input-tree/index.mjs +28 -32
  71. package/fy-progress/index.mjs +23 -24
  72. package/fy-radio/index.mjs +18 -23
  73. package/fy-rate/index.mjs +12 -13
  74. package/fy-select/index.mjs +40 -44
  75. package/fy-slider/index.mjs +17 -18
  76. package/fy-switch/index.mjs +20 -21
  77. package/fy-tabs/index.mjs +19 -21
  78. package/fy-time/index.mjs +14 -20
  79. package/fy-title/index.mjs +1 -1
  80. package/fy-tree/index.mjs +17 -21
  81. package/fy-upload/index.mjs +74 -76
  82. package/guide-steps/index.mjs +22 -24
  83. package/image-cropper/index.mjs +50 -51
  84. package/image-preview/index.mjs +24 -26
  85. package/index.mjs +480 -477
  86. package/input-number/index.mjs +13 -14
  87. package/input-number-range/index.mjs +23 -24
  88. package/login/index.mjs +35 -40
  89. package/nav-bar/index.mjs +13 -14
  90. package/notice/index.mjs +18 -19
  91. package/package.json +3 -3
  92. package/page-index/index.mjs +33 -34
  93. package/page-index-top/index.mjs +22 -24
  94. package/pageable-table/index.mjs +92 -96
  95. package/pageable-view/index.mjs +33 -34
  96. package/search/index.mjs +21 -23
  97. package/static-pageable-table/index.mjs +18 -20
  98. package/swiper/index.mjs +22 -23
  99. package/table-view/index.mjs +49 -53
  100. package/tag-render/index.mjs +19 -21
  101. package/text-ellipsis/index.mjs +11 -12
  102. package/tinymce-editor/index.mjs +50 -51
  103. package/toolbar-button/index.mjs +18 -19
  104. package/vue-cron/index.mjs +104 -112
  105. package/web-types.json +85 -1
  106. package/x-input-tag/index.mjs +47 -50
  107. package/chunks/FormTemp.d079292b.mjs +0 -139
  108. package/chunks/confirmable-mixin.26e1d0e0.mjs +0 -197
  109. package/chunks/detail.d6f8e347.mjs +0 -29
package/fy-tree/index.mjs CHANGED
@@ -1,18 +1,14 @@
1
1
  import { s as d, o as l, a as r } from "../chunks/util.ae730cde.mjs";
2
2
  import { p as u } from "../chunks/permission.ce5d2121.mjs";
3
3
  import { isBlank as p } from "@web-utils/core";
4
- import f from "element-ui/lib/tree";
5
- import m from "element-ui/lib/scrollbar";
6
- import y from "element-ui/lib/button";
7
- import _ from "element-ui/lib/input";
8
- import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
9
- var k = function() {
4
+ import { n as f } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
+ var m = function() {
10
6
  var e = this, i = e.$createElement, t = e._self._c || i;
11
7
  return t("div", {
12
8
  staticClass: "avue-tree"
13
9
  }, [e.optVal(e.option.filter, !0) ? t("div", {
14
10
  staticClass: "avue-tree__filter"
15
- }, [t(_, {
11
+ }, [t("ElInput", {
16
12
  attrs: {
17
13
  placeholder: e.optVal(e.option.filterText, "输入关键字进行过滤"),
18
14
  size: e.size
@@ -24,7 +20,7 @@ var k = function() {
24
20
  },
25
21
  expression: "filterValue"
26
22
  }
27
- }), e.optVal(e.option.addBtn, !0) ? t(y, {
23
+ }), e.optVal(e.option.addBtn, !0) ? t("ElButton", {
28
24
  directives: [{
29
25
  name: "permission",
30
26
  rawName: "v-permission",
@@ -38,9 +34,9 @@ var k = function() {
38
34
  on: {
39
35
  click: e.parentAdd
40
36
  }
41
- }) : e._t("addBtn")], 2) : e._e(), t(m, {
37
+ }) : e._t("addBtn")], 2) : e._e(), t("ElScrollbar", {
42
38
  staticClass: "avue-tree__content"
43
- }, [t(f, {
39
+ }, [t("ElTree", {
44
40
  directives: [{
45
41
  name: "loading",
46
42
  rawName: "v-loading",
@@ -156,8 +152,8 @@ var k = function() {
156
152
  expression: "form"
157
153
  }
158
154
  })], 1)], 1) : e._e()], 1);
159
- }, b = [];
160
- const x = {
155
+ }, y = [];
156
+ const v = {
161
157
  name: "FyTree",
162
158
  directives: {
163
159
  permission: u
@@ -412,23 +408,23 @@ const x = {
412
408
  }
413
409
  }
414
410
  }, c = {};
415
- var g = /* @__PURE__ */ v(
416
- x,
417
- k,
418
- b,
411
+ var _ = /* @__PURE__ */ f(
412
+ v,
413
+ m,
414
+ y,
419
415
  !1,
420
- C,
416
+ k,
421
417
  null,
422
418
  null,
423
419
  null
424
420
  );
425
- function C(e) {
421
+ function k(e) {
426
422
  for (let i in c)
427
423
  this[i] = c[i];
428
424
  }
429
- const P = /* @__PURE__ */ function() {
430
- return g.exports;
425
+ const K = /* @__PURE__ */ function() {
426
+ return _.exports;
431
427
  }();
432
428
  export {
433
- P as default
429
+ K as default
434
430
  };
@@ -1,15 +1,13 @@
1
- import { p as I, e as N } from "../chunks/event.10295951.mjs";
2
- import { B, i as F, p as K } from "../chunks/util.ae730cde.mjs";
1
+ import { p as I, e as B } from "../chunks/event.b5d855dd.mjs";
2
+ import { B as N, i as F, p as K } from "../chunks/util.ae730cde.mjs";
3
3
  import { p as A } from "../chunks/packages.1fc9ccba.mjs";
4
4
  import { isBlank as b } from "@web-utils/core";
5
- import L from "element-ui/lib/button";
6
- import D from "element-ui/lib/upload";
7
- import { n as M } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
+ import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.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 P(t, e) {
33
31
  e(o.target.result);
34
32
  };
35
33
  }
36
- function q(t, e = {}, i) {
37
- const { text: o, fontFamily: n, color: a, fontSize: r, opacity: h, bottom: S, right: f, ratio: x } = e;
34
+ function D(t, e = {}, i) {
35
+ const { text: o, fontFamily: s, color: a, fontSize: r, opacity: p, bottom: S, right: f, ratio: x } = e;
38
36
  v(), P(t, C);
39
37
  function v() {
40
- s.text = o || s.text, s.fontFamily = n || s.fontFamily, s.color = a || s.color, s.fontSize = r || s.fontSize, s.opacity = h || s.opacity, s.bottom = S || s.bottom, s.right = f || s.right, s.ratio = x || s.ratio;
38
+ n.text = o || n.text, n.fontFamily = s || n.fontFamily, n.color = a || n.color, n.fontSize = r || 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 u = new Image();
44
42
  u.src = y, u.onload = function() {
45
43
  const m = u.width, l = u.height;
46
44
  c(m, l), g.drawImage(u, 0, 0, m, l), E(m, l);
47
- const _ = document.getElementById("canvas").toDataURL(t.type, s.ratio), k = B(_, t.name);
45
+ const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), k = N(_, t.name);
48
46
  i && i(k);
49
47
  };
50
48
  }
@@ -52,13 +50,13 @@ function q(t, e = {}, i) {
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 = u;
53
51
  }
54
52
  function E(y, u) {
55
- const m = s.text, l = U(m, y, u);
56
- g.font = `${l.fontSize}px ${s.fontFamily}`, g.fillStyle = s.color, g.globalAlpha = s.opacity / 100, g.fillText(m, l.x, l.y);
53
+ const m = n.text, l = U(m, y, u);
54
+ g.font = `${l.fontSize}px ${n.fontFamily}`, g.fillStyle = n.color, g.globalAlpha = n.opacity / 100, g.fillText(m, l.x, l.y);
57
55
  }
58
56
  function U(y, u, m) {
59
57
  let l, _;
60
- const $ = s.fontSize / w.width * u;
61
- s.bottom ? _ = w.height - s.bottom : _ = s.top, s.right ? l = w.width - s.right : l = s.left, g.font = `${s.fontSize}px ${s.fontFamily}`;
58
+ const $ = n.fontSize / w.width * u;
59
+ n.bottom ? _ = w.height - n.bottom : _ = n.top, n.right ? l = w.width - n.right : l = n.left, g.font = `${n.fontSize}px ${n.fontFamily}`;
62
60
  const j = Number(g.measureText(y).width);
63
61
  l = l - j;
64
62
  const z = l / w.width, R = _ / w.height;
@@ -69,45 +67,45 @@ function q(t, e = {}, i) {
69
67
  };
70
68
  }
71
69
  }
72
- const V = (t, e, i) => {
70
+ const M = (t, e, i) => {
73
71
  const o = JSON.stringify(i);
74
72
  window.__ENV__ === "development" && console && console.log("put_policy = ", o);
75
- const n = H(J(o));
76
- window.__ENV__ === "development" && console && console.log("encoded = ", n);
77
- const r = window.CryptoJS.HmacSHA1(n, e).toString(window.CryptoJS.enc.Base64);
73
+ const s = V(q(o));
74
+ window.__ENV__ === "development" && console && console.log("encoded = ", s);
75
+ const r = window.CryptoJS.HmacSHA1(s, e).toString(window.CryptoJS.enc.Base64);
78
76
  window.__ENV__ === "development" && console && console.log("encoded_signed=", r);
79
- const h = `${t}:${Q(r)}:${n}`;
80
- return window.__ENV__ === "development" && console && console.log("upload_token=", h), h;
77
+ const p = `${t}:${J(r)}:${s}`;
78
+ return window.__ENV__ === "development" && console && console.log("upload_token=", p), p;
81
79
  };
82
- function J(t) {
80
+ function q(t) {
83
81
  let e, i, o;
84
82
  e = "";
85
- const n = t.length;
86
- for (i = 0; i < n; i++)
83
+ const s = t.length;
84
+ for (i = 0; i < s; i++)
87
85
  o = t.charCodeAt(i), o >= 1 && o <= 127 ? e += t.charAt(i) : o > 2047 ? (e += String.fromCharCode(224 | o >> 12 & 15), e += String.fromCharCode(128 | o >> 6 & 63), e += String.fromCharCode(128 | o >> 0 & 63)) : (e += String.fromCharCode(192 | o >> 6 & 31), e += String.fromCharCode(128 | o >> 0 & 63));
88
86
  return e;
89
87
  }
90
- const p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
91
- function H(t) {
92
- let e, i, o, n, a;
88
+ const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
89
+ function V(t) {
90
+ let e, i, o, s, a;
93
91
  const r = t.length;
94
92
  for (i = 0, e = ""; i < r; ) {
95
93
  if (o = t.charCodeAt(i++) & 255, i === r) {
96
- e += p.charAt(o >> 2), e += p.charAt((o & 3) << 4), e += "==";
94
+ e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4), e += "==";
97
95
  break;
98
96
  }
99
- if (n = t.charCodeAt(i++), i === r) {
100
- e += p.charAt(o >> 2), e += p.charAt((o & 3) << 4 | (n & 240) >> 4), e += p.charAt((n & 15) << 2), e += "=";
97
+ if (s = t.charCodeAt(i++), i === r) {
98
+ e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (s & 240) >> 4), e += h.charAt((s & 15) << 2), e += "=";
101
99
  break;
102
100
  }
103
- a = t.charCodeAt(i++), e += p.charAt(o >> 2), e += p.charAt((o & 3) << 4 | (n & 240) >> 4), e += p.charAt((n & 15) << 2 | (a & 192) >> 6), e += p.charAt(a & 63);
101
+ a = t.charCodeAt(i++), e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (s & 240) >> 4), e += h.charAt((s & 15) << 2 | (a & 192) >> 6), e += h.charAt(a & 63);
104
102
  }
105
103
  return e;
106
104
  }
107
- const Q = function(t) {
105
+ const J = function(t) {
108
106
  return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
109
- }, W = (t) => new window.OSS(t);
110
- var X = function() {
107
+ }, H = (t) => new window.OSS(t);
108
+ var Q = function() {
111
109
  var t = this, e = t.$createElement, i = t._self._c || e;
112
110
  return i("div", {
113
111
  directives: [{
@@ -123,7 +121,7 @@ var X = function() {
123
121
  attrs: {
124
122
  "element-loading-text": t.loadText
125
123
  }
126
- }, [i(D, {
124
+ }, [i("ElUpload", {
127
125
  key: t.reload,
128
126
  class: {
129
127
  "avue-upload--list": t.listType === "picture-img",
@@ -166,14 +164,14 @@ var X = function() {
166
164
  }, {
167
165
  key: "file",
168
166
  fn: function(o) {
169
- var n = o.file;
167
+ var s = o.file;
170
168
  return [t.$scopedSlots.default ? t._t("default", null, {
171
- file: n
172
- }) : t.listType === "picture-card" ? i("span", [t.isMediaType(n.url) ? i(n.type, {
169
+ file: s
170
+ }) : t.listType === "picture-card" ? i("span", [t.isMediaType(s.url) ? i(s.type, {
173
171
  tag: "Component",
174
172
  staticClass: "el-upload-list__item-thumbnail",
175
173
  attrs: {
176
- src: n.url
174
+ src: s.url
177
175
  }
178
176
  }) : i("i", {
179
177
  staticClass: "avue-upload__avatar el-icon-document"
@@ -185,7 +183,7 @@ var X = function() {
185
183
  staticClass: "el-icon-zoom-in",
186
184
  on: {
187
185
  click: function(a) {
188
- return a.stopPropagation(), t.handlePreview(n);
186
+ return a.stopPropagation(), t.handlePreview(s);
189
187
  }
190
188
  }
191
189
  })]), i("span", {
@@ -194,47 +192,47 @@ var X = function() {
194
192
  staticClass: "el-icon-delete",
195
193
  on: {
196
194
  click: function(a) {
197
- return a.stopPropagation(), t.handleRemove(n);
195
+ return a.stopPropagation(), t.handleRemove(s);
198
196
  }
199
197
  }
200
198
  })])])], 1) : t.listType === "picture" ? i("span", {
201
199
  on: {
202
200
  click: function(a) {
203
- return a.stopPropagation(), t.handlePreview(n);
201
+ return a.stopPropagation(), t.handlePreview(s);
204
202
  }
205
203
  }
206
- }, [i(n.type, {
204
+ }, [i(s.type, {
207
205
  tag: "Component",
208
206
  staticClass: "el-upload-list__item-thumbnail",
209
207
  attrs: {
210
- src: n.url
208
+ src: s.url
211
209
  }
212
210
  }), i("a", {
213
211
  staticClass: "el-upload-list__item-name"
214
212
  }, [i("i", {
215
213
  staticClass: "el-icon-document"
216
- }), t._v(" " + t._s(n.name) + " ")]), i("i", {
214
+ }), t._v(" " + t._s(s.name) + " ")]), i("i", {
217
215
  staticClass: "el-icon-close",
218
216
  on: {
219
217
  click: function(a) {
220
- return a.stopPropagation(), t.handleRemove(n);
218
+ return a.stopPropagation(), t.handleRemove(s);
221
219
  }
222
220
  }
223
221
  })], 1) : i("span", {
224
222
  on: {
225
223
  click: function(a) {
226
- return a.stopPropagation(), t.handlePreview(n);
224
+ return a.stopPropagation(), t.handlePreview(s);
227
225
  }
228
226
  }
229
227
  }, [i("a", {
230
228
  staticClass: "el-upload-list__item-name"
231
229
  }, [i("i", {
232
230
  staticClass: "el-icon-document"
233
- }), t._v(" " + t._s(n.name) + " ")]), t.disabled ? t._e() : i("i", {
231
+ }), t._v(" " + t._s(s.name) + " ")]), t.disabled ? t._e() : i("i", {
234
232
  staticClass: "el-icon-close",
235
233
  on: {
236
234
  click: function(a) {
237
- return a.stopPropagation(), t.handleRemove(n);
235
+ return a.stopPropagation(), t.handleRemove(s);
238
236
  }
239
237
  }
240
238
  })])];
@@ -299,20 +297,20 @@ var X = function() {
299
297
  staticClass: "el-icon-upload"
300
298
  }), i("div", {
301
299
  staticClass: "el-upload__text"
302
- }, [i("em", [t._v(t._s(t.fileText || "上传"))])])] : [i(L, {
300
+ }, [i("em", [t._v(t._s(t.fileText || "上传"))])])] : [i("ElButton", {
303
301
  attrs: {
304
302
  icon: "el-icon-upload",
305
303
  size: t.size,
306
304
  type: "primary"
307
305
  }
308
306
  }, [t._v(" " + t._s(t.fileText || "上传") + " ")])]], 2)], 1);
309
- }, Y = [];
307
+ }, W = [];
310
308
  function O(t, e = "") {
311
309
  return e.match(/(^http:\/\/|^https:\/\/|^\/\/|data:image\/)/) ? e : t + e;
312
310
  }
313
- const G = {
311
+ const X = {
314
312
  name: "FyUpload",
315
- mixins: [I, N],
313
+ mixins: [I, B],
316
314
  props: {
317
315
  qiniu: Object,
318
316
  ali: Object,
@@ -416,13 +414,13 @@ const G = {
416
414
  return (this.text || []).forEach((e, i) => {
417
415
  if (e) {
418
416
  const o = this.isObject ? e[this.labelKey] : e.substring(e.lastIndexOf("/") + 1);
419
- let n = this.isObject ? e[this.valueKey] : e;
420
- n = O(this.homeUrl, n), t.push({
417
+ let s = this.isObject ? e[this.valueKey] : e;
418
+ s = O(this.homeUrl, s), t.push({
421
419
  uid: `${i}`,
422
420
  status: "done",
423
- type: this.isMediaType(n),
421
+ type: this.isMediaType(s),
424
422
  name: o,
425
- url: n
423
+ url: s
426
424
  });
427
425
  }
428
426
  }), t;
@@ -494,8 +492,8 @@ const G = {
494
492
  return;
495
493
  }
496
494
  const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
497
- let n = {}, a = {};
498
- const r = new FormData(), h = () => {
495
+ let s = {}, a = {};
496
+ const r = new FormData(), p = () => {
499
497
  const f = (x) => {
500
498
  let v = this.action;
501
499
  for (const c in this.data)
@@ -506,23 +504,23 @@ const G = {
506
504
  A.logs("CryptoJS"), this.hide();
507
505
  return;
508
506
  }
509
- n = this.qiniu || this.$AVUE.qiniu;
510
- const c = V(n.AK, n.SK, {
511
- scope: n.scope,
512
- deadline: (/* @__PURE__ */ new Date()).getTime() + n.deadline * 3600
507
+ s = this.qiniu || this.$AVUE.qiniu;
508
+ const c = M(s.AK, s.SK, {
509
+ scope: s.scope,
510
+ deadline: (/* @__PURE__ */ new Date()).getTime() + s.deadline * 3600
513
511
  });
514
- r.append("token", c), v = n.bucket;
512
+ r.append("token", c), v = s.bucket;
515
513
  } else if (this.isAliOss) {
516
514
  if (!window.OSS) {
517
515
  A.logs("AliOSS"), this.hide();
518
516
  return;
519
517
  }
520
- n = this.ali || this.$AVUE.ali, a = W(n);
518
+ s = this.ali || this.$AVUE.ali, a = H(s);
521
519
  }
522
520
  (() => this.isAliOss ? a.put(C.name, C, {
523
521
  headers: this.headers
524
522
  }) : this.$axios.post(v, r, { headers: o }))().then((c) => {
525
- this.res = {}, this.isQiniuOss && (c.data.key = n.url + c.data.key), this.res = K(this.isAliOss ? c : c.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
523
+ this.res = {}, this.isQiniuOss && (c.data.key = s.url + c.data.key), this.res = K(this.isAliOss ? c : c.data, this.resKey), typeof this.uploadAfter == "function" ? this.uploadAfter(this.res, this.show, this.hide, this.column) : this.show();
526
524
  }).catch((c) => {
527
525
  this.hide(c);
528
526
  });
@@ -530,12 +528,12 @@ const G = {
530
528
  typeof this.uploadBefore == "function" ? this.uploadBefore(e, f, this.hide, this.column) : f();
531
529
  };
532
530
  if (F(e.name) !== "img") {
533
- h();
531
+ p();
534
532
  return;
535
533
  }
536
534
  const S = () => {
537
- b(this.canvasOption) ? h() : q(e, this.canvasOption, (f) => {
538
- e = f, h();
535
+ b(this.canvasOption) ? p() : D(e, this.canvasOption, (f) => {
536
+ e = f, p();
539
537
  });
540
538
  };
541
539
  b(this.cropperOption) ? S() : P(e, (f) => {
@@ -572,23 +570,23 @@ const G = {
572
570
  }
573
571
  }
574
572
  }, T = {};
575
- var Z = /* @__PURE__ */ M(
576
- G,
573
+ var Y = /* @__PURE__ */ L(
577
574
  X,
578
- Y,
575
+ Q,
576
+ W,
579
577
  !1,
580
- tt,
578
+ G,
581
579
  null,
582
580
  null,
583
581
  null
584
582
  );
585
- function tt(t) {
583
+ function G(t) {
586
584
  for (let e in T)
587
585
  this[e] = T[e];
588
586
  }
589
- const rt = /* @__PURE__ */ function() {
590
- return Z.exports;
587
+ const st = /* @__PURE__ */ function() {
588
+ return Y.exports;
591
589
  }();
592
590
  export {
593
- rt as default
591
+ st as default
594
592
  };
@@ -1,33 +1,31 @@
1
- import n from "element-ui/lib/step";
2
- import i from "element-ui/lib/steps";
3
- import { n as u } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
- var o = function() {
1
+ import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
2
+ var n = function() {
5
3
  var t = this, e = t.$createElement, a = t._self._c || e;
6
- return a(i, {
4
+ return a("ElSteps", {
7
5
  staticClass: "guide-steps",
8
6
  attrs: {
9
7
  "align-center": ""
10
8
  }
11
- }, t._l(t.steps, function(s, r) {
12
- return a(n, {
13
- key: s.label,
9
+ }, t._l(t.steps, function(r, s) {
10
+ return a("ElStep", {
11
+ key: r.label,
14
12
  class: [{
15
- "current important": t.value === r,
16
- disabled: !t.available(r),
17
- available: !t.ready[r] && t.available(r)
13
+ "current important": t.value === s,
14
+ disabled: !t.available(s),
15
+ available: !t.ready[s] && t.available(s)
18
16
  }],
19
17
  attrs: {
20
- status: t.ready[r] ? "success" : "",
21
- title: s.label
18
+ status: t.ready[s] ? "success" : "",
19
+ title: r.label
22
20
  },
23
21
  nativeOn: {
24
- click: function(v) {
25
- return t.activeStep(r);
22
+ click: function(_) {
23
+ return t.activeStep(s);
26
24
  }
27
25
  }
28
26
  });
29
27
  }), 1);
30
- }, _ = [];
28
+ }, u = [];
31
29
  const c = {
32
30
  name: "GuideSteps",
33
31
  props: {
@@ -74,23 +72,23 @@ const c = {
74
72
  }
75
73
  }
76
74
  }, l = {};
77
- var p = /* @__PURE__ */ u(
75
+ var o = /* @__PURE__ */ i(
78
76
  c,
79
- o,
80
- _,
77
+ n,
78
+ u,
81
79
  !1,
82
- f,
80
+ p,
83
81
  null,
84
82
  null,
85
83
  null
86
84
  );
87
- function f(t) {
85
+ function p(t) {
88
86
  for (let e in l)
89
87
  this[e] = l[e];
90
88
  }
91
- const y = /* @__PURE__ */ function() {
92
- return p.exports;
89
+ const f = /* @__PURE__ */ function() {
90
+ return o.exports;
93
91
  }();
94
92
  export {
95
- y as default
93
+ f as default
96
94
  };