@web-utils/component 2.8.0 → 2.8.2

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 (95) hide show
  1. package/base.css +1 -1
  2. package/card/index.mjs +33 -37
  3. package/chat/index.mjs +132 -123
  4. package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
  5. package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
  6. package/chunks/dic.7f13b573.mjs +130 -0
  7. package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
  8. package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
  9. package/chunks/json-beautifier.21cfffea.mjs +126 -0
  10. package/chunks/util.505913d9.mjs +266 -0
  11. package/column/index.mjs +2 -2
  12. package/column-default/index.mjs +1 -1
  13. package/column-dynamic/index.mjs +1 -1
  14. package/column-menu/index.mjs +81 -79
  15. package/column-slot/index.mjs +8 -7
  16. package/comment/index.mjs +6 -10
  17. package/data-pay/index.mjs +16 -13
  18. package/data-table-picker/index.mjs +22 -22
  19. package/dialog-excel/index.mjs +8 -8
  20. package/dialog-filter/index.mjs +4 -2
  21. package/dialog-form/index.mjs +6 -6
  22. package/dynamic-table/index.mjs +8 -8
  23. package/editable-tree/index.mjs +5 -5
  24. package/flow/index.mjs +11 -11
  25. package/flow/style.css +1 -1
  26. package/flow-node/index.mjs +2 -2
  27. package/form-block/index.mjs +156 -0
  28. package/form-block/style.css +1 -0
  29. package/form-button/index.mjs +16 -38
  30. package/form-group/index.mjs +28 -33
  31. package/form-input-tag/index.mjs +99 -0
  32. package/form-temp/index.mjs +15 -27
  33. package/fy-array/index.mjs +44 -42
  34. package/fy-cascader/index.mjs +1 -1
  35. package/fy-checkbox/index.mjs +2 -1
  36. package/fy-code/index.mjs +1 -1
  37. package/fy-curd/index.mjs +29 -31
  38. package/fy-date/index.mjs +1 -1
  39. package/fy-dialog-form/index.mjs +5 -11
  40. package/fy-draggable/index.mjs +3 -3
  41. package/fy-dynamic/index.mjs +3 -3
  42. package/fy-empty/index.mjs +1 -1
  43. package/fy-form/index.mjs +133 -122
  44. package/fy-form-design/index.mjs +2596 -2893
  45. package/fy-form-design/style.css +1 -1
  46. package/fy-input/index.mjs +10 -15
  47. package/fy-input-color/index.mjs +1 -1
  48. package/fy-input-icon/index.mjs +21 -16
  49. package/fy-input-map/index.mjs +22 -19
  50. package/fy-input-number/index.mjs +1 -1
  51. package/fy-input-table/index.mjs +1 -1
  52. package/fy-input-tree/index.mjs +5 -6
  53. package/fy-radio/index.mjs +3 -1
  54. package/fy-rate/index.mjs +2 -1
  55. package/fy-select/index.mjs +29 -28
  56. package/fy-slider/index.mjs +2 -2
  57. package/fy-switch/index.mjs +2 -1
  58. package/fy-tabs/index.mjs +19 -17
  59. package/fy-time/index.mjs +1 -1
  60. package/fy-title/index.mjs +1 -1
  61. package/fy-tree/index.mjs +8 -6
  62. package/fy-u-editor/index.mjs +10 -14
  63. package/fy-upload/index.mjs +85 -84
  64. package/header-menu/index.mjs +1 -1
  65. package/header-search/index.mjs +7 -5
  66. package/image-cropper/index.mjs +1 -1
  67. package/image-preview/index.mjs +1 -1
  68. package/index.cjs +62 -38
  69. package/index.css +1 -1
  70. package/index.mjs +17121 -16215
  71. package/license/index.mjs +1 -1
  72. package/login/index.mjs +1 -1
  73. package/monaco-editor/index.mjs +196 -0
  74. package/package.json +3 -2
  75. package/present-view/index.mjs +360 -0
  76. package/present-view/style.css +1 -0
  77. package/process-designer/index.mjs +10 -2
  78. package/queue/index.mjs +3 -8
  79. package/queue/style.css +1 -0
  80. package/record-video/index.mjs +1 -1
  81. package/search/index.mjs +2 -2
  82. package/search-popover/index.mjs +25 -24
  83. package/sign/index.mjs +17 -18
  84. package/sign/style.css +1 -1
  85. package/swiper/index.mjs +1 -1
  86. package/table-page/index.mjs +21 -23
  87. package/text-ellipsis/index.mjs +1 -1
  88. package/tinymce-editor/style.css +1 -1
  89. package/tinymce-wrapper/index.mjs +290 -97
  90. package/verify/index.mjs +1 -1
  91. package/web-types.json +829 -320
  92. package/x-input-tag/index.mjs +182 -0
  93. package/x-input-tag/style.css +1 -0
  94. package/chunks/dic.e8280157.mjs +0 -130
  95. package/chunks/util.17330567.mjs +0 -266
@@ -1,7 +1,7 @@
1
- var b = Object.defineProperty;
1
+ var v = Object.defineProperty;
2
2
  var u = Object.getOwnPropertySymbols;
3
3
  var m = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
4
- var f = (t, e, r) => e in t ? b(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, h = (t, e) => {
4
+ var f = (t, e, r) => e in t ? v(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, h = (t, e) => {
5
5
  for (var r in e || (e = {}))
6
6
  m.call(e, r) && f(t, r, e[r]);
7
7
  if (u)
@@ -35,8 +35,8 @@ var p = (t, e, r) => new Promise((s, i) => {
35
35
  c((r = r.apply(t, e)).next());
36
36
  });
37
37
  import "@wangeditor/editor/dist/css/style.css";
38
- import { createEditor as v, createToolbar as _ } from "@wangeditor/editor";
39
- import { g as x } from "../chunks/util.17330567.mjs";
38
+ import { createEditor as _, createToolbar as b } from "@wangeditor/editor";
39
+ import { g as x } from "../chunks/util.505913d9.mjs";
40
40
  import { n as F } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
41
41
  const A = (t) => {
42
42
  const { region: e, endpoint: r, accessKeyId: s, accessKeySecret: i, bucket: a } = t;
@@ -200,7 +200,7 @@ function K(t) {
200
200
  }
201
201
  var H = function(t) {
202
202
  return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
203
- }, j = function() {
203
+ }, k = function() {
204
204
  var t = this, e = t.$createElement, r = t._self._c || e;
205
205
  return r("div", {
206
206
  staticClass: "avue-ueditor"
@@ -211,8 +211,8 @@ var H = function(t) {
211
211
  ref: "editor",
212
212
  staticClass: "fy-editor"
213
213
  })]);
214
- }, k = [];
215
- const E = {
214
+ }, E = [];
215
+ const j = {
216
216
  name: "FyUEditor",
217
217
  props: {
218
218
  data: {
@@ -235,10 +235,6 @@ const E = {
235
235
  type: Object,
236
236
  default: () => ({})
237
237
  },
238
- options: {
239
- type: Object,
240
- default: () => ({})
241
- },
242
238
  ali: {
243
239
  type: Object,
244
240
  default: () => ({})
@@ -333,14 +329,14 @@ const E = {
333
329
  this.$emit("input", n);
334
330
  }
335
331
  }, i);
336
- this.editor = Object.seal(v({
332
+ this.editor = Object.seal(_({
337
333
  selector: this.$refs.editor,
338
334
  config: a,
339
335
  html: this.value,
340
336
  mode: t
341
337
  }));
342
338
  const l = h({}, this.toolbarConfig);
343
- this.toolbar = _({
339
+ this.toolbar = b({
344
340
  editor: this.editor,
345
341
  selector: this.$refs.toolbar,
346
342
  config: l,
@@ -388,9 +384,9 @@ const E = {
388
384
  }
389
385
  }, C = {};
390
386
  var U = /* @__PURE__ */ F(
391
- E,
392
387
  j,
393
388
  k,
389
+ E,
394
390
  !1,
395
391
  I,
396
392
  null,
@@ -1,10 +1,10 @@
1
- import { p as I, e as N } from "../chunks/event.a018cb06.mjs";
2
- import { z as B, i as k, g as K } from "../chunks/util.17330567.mjs";
1
+ import { p as I, e as B } from "../chunks/event.1ac32f1d.mjs";
2
+ import { B as N, i as k, g as K } from "../chunks/util.505913d9.mjs";
3
3
  import { p as F } from "../chunks/packages.1fc9ccba.mjs";
4
- import { isBlank as w } from "@web-utils/core";
4
+ import { isBlank as b } from "@web-utils/core";
5
5
  import { n as L } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
6
6
  let d, g;
7
- const S = {
7
+ const w = {
8
8
  width: 200,
9
9
  height: 200
10
10
  }, n = {
@@ -27,22 +27,22 @@ const S = {
27
27
  };
28
28
  function P(t, e) {
29
29
  const i = new FileReader();
30
- i.readAsDataURL(t), i.onload = function(s) {
31
- e(s.target.result);
30
+ i.readAsDataURL(t), i.onload = function(o) {
31
+ e(o.target.result);
32
32
  };
33
33
  }
34
34
  function D(t, e = {}, i) {
35
- const { text: s, fontFamily: o, color: a, fontSize: r, opacity: p, bottom: b, right: f, ratio: x } = e;
35
+ const { text: o, fontFamily: s, color: a, fontSize: r, opacity: p, bottom: S, right: f, ratio: x } = e;
36
36
  v(), P(t, C);
37
37
  function v() {
38
- n.text = s || n.text, n.fontFamily = o || n.fontFamily, n.color = a || n.color, n.fontSize = r || n.fontSize, n.opacity = p || n.opacity, n.bottom = b || n.bottom, n.right = f || n.right, n.ratio = x || n.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;
39
39
  }
40
40
  function C(y) {
41
41
  const u = new Image();
42
42
  u.src = y, u.onload = function() {
43
43
  const m = u.width, l = u.height;
44
44
  c(m, l), g.drawImage(u, 0, 0, m, l), E(m, l);
45
- const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), O = B(_, t.name);
45
+ const _ = document.getElementById("canvas").toDataURL(t.type, n.ratio), O = N(_, t.name);
46
46
  i && i(O);
47
47
  };
48
48
  }
@@ -55,12 +55,12 @@ function D(t, e = {}, i) {
55
55
  }
56
56
  function U(y, u, m) {
57
57
  let l, _;
58
- const $ = n.fontSize / S.width * u;
59
- n.bottom ? _ = S.height - n.bottom : _ = n.top, n.right ? l = S.width - n.right : l = n.left, g.font = `${n.fontSize}px ${n.fontFamily}`;
60
- const z = Number(g.measureText(y).width);
61
- l = l - z;
62
- const j = l / S.width, R = _ / S.height;
63
- return l = j * u, _ = R * m, {
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}`;
60
+ const j = Number(g.measureText(y).width);
61
+ l = l - j;
62
+ const z = l / w.width, R = _ / w.height;
63
+ return l = z * u, _ = R * m, {
64
64
  x: l,
65
65
  y: _,
66
66
  fontSize: $
@@ -68,42 +68,43 @@ function D(t, e = {}, i) {
68
68
  }
69
69
  }
70
70
  const M = (t, e, i) => {
71
- const s = JSON.stringify(i);
72
- window.__ENV__ === "development" && console && console.log("put_policy = ", s);
73
- const o = V(q(s));
74
- window.__ENV__ === "development" && console && console.log("encoded = ", o);
75
- const r = CryptoJS.HmacSHA1(o, e).toString(CryptoJS.enc.Base64);
71
+ const o = JSON.stringify(i);
72
+ window.__ENV__ === "development" && console && console.log("put_policy = ", o);
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);
76
76
  window.__ENV__ === "development" && console && console.log("encoded_signed=", r);
77
- const p = `${t}:${J(r)}:${o}`;
77
+ const p = `${t}:${J(r)}:${s}`;
78
78
  return window.__ENV__ === "development" && console && console.log("upload_token=", p), p;
79
79
  };
80
80
  function q(t) {
81
- let e, i, s;
81
+ let e, i, o;
82
82
  e = "";
83
- const o = t.length;
84
- for (i = 0; i < o; i++)
85
- s = t.charCodeAt(i), s >= 1 && s <= 127 ? e += t.charAt(i) : s > 2047 ? (e += String.fromCharCode(224 | s >> 12 & 15), e += String.fromCharCode(128 | s >> 6 & 63), e += String.fromCharCode(128 | s >> 0 & 63)) : (e += String.fromCharCode(192 | s >> 6 & 31), e += String.fromCharCode(128 | s >> 0 & 63));
83
+ const s = t.length;
84
+ for (i = 0; i < s; i++)
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));
86
86
  return e;
87
87
  }
88
88
  const h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
89
89
  function V(t) {
90
- let e, i, s, o, a, r;
91
- for (s = t.length, i = 0, e = ""; i < s; ) {
92
- if (o = t.charCodeAt(i++) & 255, i == s) {
90
+ let e, i, o, s, a;
91
+ const r = t.length;
92
+ for (i = 0, e = ""; i < r; ) {
93
+ if (o = t.charCodeAt(i++) & 255, i === r) {
93
94
  e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4), e += "==";
94
95
  break;
95
96
  }
96
- if (a = t.charCodeAt(i++), i == s) {
97
- e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (a & 240) >> 4), e += h.charAt((a & 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 += "=";
98
99
  break;
99
100
  }
100
- r = t.charCodeAt(i++), e += h.charAt(o >> 2), e += h.charAt((o & 3) << 4 | (a & 240) >> 4), e += h.charAt((a & 15) << 2 | (r & 192) >> 6), e += h.charAt(r & 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);
101
102
  }
102
103
  return e;
103
104
  }
104
105
  const J = function(t) {
105
106
  return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
106
- }, H = (t) => new OSS(t);
107
+ }, H = (t) => new window.OSS(t);
107
108
  var Q = function() {
108
109
  var t = this, e = t.$createElement, i = t._self._c || e;
109
110
  return i("div", {
@@ -145,7 +146,7 @@ var Q = function() {
145
146
  "file-list": t.fileList
146
147
  },
147
148
  nativeOn: {
148
- click: function(s) {
149
+ click: function(o) {
149
150
  return t.handleClick.apply(null, arguments);
150
151
  }
151
152
  },
@@ -162,15 +163,15 @@ var Q = function() {
162
163
  proxy: !0
163
164
  }, {
164
165
  key: "file",
165
- fn: function(s) {
166
- var o = s.file;
166
+ fn: function(o) {
167
+ var s = o.file;
167
168
  return [t.$scopedSlots.default ? t._t("default", null, {
168
- file: o
169
- }) : t.listType === "picture-card" ? i("span", [t.isMediaType(o.url) ? i(o.type, {
169
+ file: s
170
+ }) : t.listType === "picture-card" ? i("span", [t.isMediaType(s.url) ? i(s.type, {
170
171
  tag: "Component",
171
172
  staticClass: "el-upload-list__item-thumbnail",
172
173
  attrs: {
173
- src: o.url
174
+ src: s.url
174
175
  }
175
176
  }) : i("i", {
176
177
  staticClass: "avue-upload__avatar el-icon-document"
@@ -182,7 +183,7 @@ var Q = function() {
182
183
  staticClass: "el-icon-zoom-in",
183
184
  on: {
184
185
  click: function(a) {
185
- return a.stopPropagation(), t.handlePreview(o);
186
+ return a.stopPropagation(), t.handlePreview(s);
186
187
  }
187
188
  }
188
189
  })]), i("span", {
@@ -191,47 +192,47 @@ var Q = function() {
191
192
  staticClass: "el-icon-delete",
192
193
  on: {
193
194
  click: function(a) {
194
- return a.stopPropagation(), t.handleRemove(o);
195
+ return a.stopPropagation(), t.handleRemove(s);
195
196
  }
196
197
  }
197
198
  })])])], 1) : t.listType === "picture" ? i("span", {
198
199
  on: {
199
200
  click: function(a) {
200
- return a.stopPropagation(), t.handlePreview(o);
201
+ return a.stopPropagation(), t.handlePreview(s);
201
202
  }
202
203
  }
203
- }, [i(o.type, {
204
+ }, [i(s.type, {
204
205
  tag: "Component",
205
206
  staticClass: "el-upload-list__item-thumbnail",
206
207
  attrs: {
207
- src: o.url
208
+ src: s.url
208
209
  }
209
210
  }), i("a", {
210
211
  staticClass: "el-upload-list__item-name"
211
212
  }, [i("i", {
212
213
  staticClass: "el-icon-document"
213
- }), t._v(" " + t._s(o.name) + " ")]), i("i", {
214
+ }), t._v(" " + t._s(s.name) + " ")]), i("i", {
214
215
  staticClass: "el-icon-close",
215
216
  on: {
216
217
  click: function(a) {
217
- return a.stopPropagation(), t.handleRemove(o);
218
+ return a.stopPropagation(), t.handleRemove(s);
218
219
  }
219
220
  }
220
221
  })], 1) : i("span", {
221
222
  on: {
222
223
  click: function(a) {
223
- return a.stopPropagation(), t.handlePreview(o);
224
+ return a.stopPropagation(), t.handlePreview(s);
224
225
  }
225
226
  }
226
227
  }, [i("a", {
227
228
  staticClass: "el-upload-list__item-name"
228
229
  }, [i("i", {
229
230
  staticClass: "el-icon-document"
230
- }), t._v(" " + t._s(o.name) + " ")]), t.disabled ? t._e() : i("i", {
231
+ }), t._v(" " + t._s(s.name) + " ")]), t.disabled ? t._e() : i("i", {
231
232
  staticClass: "el-icon-close",
232
233
  on: {
233
234
  click: function(a) {
234
- return a.stopPropagation(), t.handleRemove(o);
235
+ return a.stopPropagation(), t.handleRemove(s);
235
236
  }
236
237
  }
237
238
  })])];
@@ -250,14 +251,14 @@ var Q = function() {
250
251
  src: t.imgUrl
251
252
  },
252
253
  on: {
253
- mouseover: function(s) {
254
+ mouseover: function(o) {
254
255
  t.menu = !0;
255
256
  }
256
257
  }
257
258
  }) : t.imgUrl ? i("i", {
258
259
  staticClass: "avue-upload__avatar el-icon-document",
259
260
  on: {
260
- mouseover: function(s) {
261
+ mouseover: function(o) {
261
262
  t.menu = !0;
262
263
  }
263
264
  }
@@ -266,21 +267,21 @@ var Q = function() {
266
267
  }), t.menu ? i("div", {
267
268
  staticClass: "el-upload-list__item-actions avue-upload__menu",
268
269
  on: {
269
- mouseover: function(s) {
270
+ mouseover: function(o) {
270
271
  t.menu = !0;
271
272
  },
272
- mouseout: function(s) {
273
+ mouseout: function(o) {
273
274
  t.menu = !1;
274
275
  },
275
- click: function(s) {
276
- s.stopPropagation();
276
+ click: function(o) {
277
+ o.stopPropagation();
277
278
  }
278
279
  }
279
280
  }, [i("i", {
280
281
  staticClass: "el-icon-zoom-in",
281
282
  on: {
282
- click: function(s) {
283
- return s.stopPropagation(), t.handlePreview({
283
+ click: function(o) {
284
+ return o.stopPropagation(), t.handlePreview({
284
285
  url: t.imgUrl
285
286
  });
286
287
  }
@@ -288,8 +289,8 @@ var Q = function() {
288
289
  }), t.disabled ? t._e() : i("i", {
289
290
  staticClass: "el-icon-delete",
290
291
  on: {
291
- click: function(s) {
292
- return s.stopPropagation(), t.handleDelete(t.imgUrl);
292
+ click: function(o) {
293
+ return o.stopPropagation(), t.handleDelete(t.imgUrl);
293
294
  }
294
295
  }
295
296
  })]) : t._e()]] : t.dragFile ? [i("i", {
@@ -309,7 +310,7 @@ function A(t, e = "") {
309
310
  }
310
311
  const X = {
311
312
  name: "FyUpload",
312
- mixins: [I, N],
313
+ mixins: [I, B],
313
314
  props: {
314
315
  qiniu: Object,
315
316
  ali: Object,
@@ -406,20 +407,20 @@ const X = {
406
407
  },
407
408
  // 单个头像图片
408
409
  imgUrl() {
409
- return w(this.text) ? null : A(this.homeUrl, this.text[0]);
410
+ return b(this.text) ? null : A(this.homeUrl, this.text[0]);
410
411
  },
411
412
  fileList() {
412
413
  const t = [];
413
414
  return (this.text || []).forEach((e, i) => {
414
415
  if (e) {
415
- const s = this.isObject ? e[this.labelKey] : e.substring(e.lastIndexOf("/") + 1);
416
- let o = this.isObject ? e[this.valueKey] : e;
417
- o = A(this.homeUrl, o), t.push({
416
+ const o = this.isObject ? e[this.labelKey] : e.substring(e.lastIndexOf("/") + 1);
417
+ let s = this.isObject ? e[this.valueKey] : e;
418
+ s = A(this.homeUrl, s), t.push({
418
419
  uid: `${i}`,
419
420
  status: "done",
420
- type: this.isMediaType(o),
421
- name: s,
422
- url: o
421
+ type: this.isMediaType(s),
422
+ name: o,
423
+ url: s
423
424
  });
424
425
  }
425
426
  }), t;
@@ -465,8 +466,8 @@ const X = {
465
466
  },
466
467
  delete(t) {
467
468
  (this.text || []).forEach((e, i) => {
468
- const s = this.isObject ? e[this.valueKey] : e;
469
- A(this.homeUrl, s) === t.url && this.text.splice(i, 1);
469
+ const o = this.isObject ? e[this.valueKey] : e;
470
+ A(this.homeUrl, o) === t.url && this.text.splice(i, 1);
470
471
  });
471
472
  },
472
473
  show(t) {
@@ -486,12 +487,12 @@ const X = {
486
487
  this.loading = !0;
487
488
  let e = t.file;
488
489
  const i = e.size / 1024;
489
- if (!w(i) && i > this.fileSize) {
490
+ if (!b(i) && i > this.fileSize) {
490
491
  this.hide("文件太大不符合");
491
492
  return;
492
493
  }
493
- const s = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
494
- let o = {}, a = {};
494
+ const o = Object.assign(this.headers, { "Content-Type": "multipart/form-data" });
495
+ let s = {}, a = {};
495
496
  const r = new FormData(), p = () => {
496
497
  const f = (x) => {
497
498
  let v = this.action;
@@ -503,23 +504,23 @@ const X = {
503
504
  F.logs("CryptoJS"), this.hide();
504
505
  return;
505
506
  }
506
- o = this.qiniu || this.$AVUE.qiniu;
507
- const c = M(o.AK, o.SK, {
508
- scope: o.scope,
509
- deadline: new Date().getTime() + o.deadline * 3600
507
+ s = this.qiniu || this.$AVUE.qiniu;
508
+ const c = M(s.AK, s.SK, {
509
+ scope: s.scope,
510
+ deadline: new Date().getTime() + s.deadline * 3600
510
511
  });
511
- r.append("token", c), v = o.bucket;
512
+ r.append("token", c), v = s.bucket;
512
513
  } else if (this.isAliOss) {
513
514
  if (!window.OSS) {
514
515
  F.logs("AliOSS"), this.hide();
515
516
  return;
516
517
  }
517
- o = this.ali || this.$AVUE.ali, a = H(o);
518
+ s = this.ali || this.$AVUE.ali, a = H(s);
518
519
  }
519
520
  (() => this.isAliOss ? a.put(C.name, C, {
520
521
  headers: this.headers
521
- }) : this.$axios.post(v, r, { headers: s }))().then((c) => {
522
- this.res = {}, this.isQiniuOss && (c.data.key = o.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();
522
+ }) : this.$axios.post(v, r, { headers: o }))().then((c) => {
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();
523
524
  }).catch((c) => {
524
525
  this.hide(c);
525
526
  });
@@ -530,17 +531,17 @@ const X = {
530
531
  p();
531
532
  return;
532
533
  }
533
- const b = () => {
534
- w(this.canvasOption) ? p() : D(e, this.canvasOption, (f) => {
534
+ const S = () => {
535
+ b(this.canvasOption) ? p() : D(e, this.canvasOption, (f) => {
535
536
  e = f, p();
536
537
  });
537
538
  };
538
- w(this.cropperOption) ? b() : P(e, (f) => {
539
+ b(this.cropperOption) ? S() : P(e, (f) => {
539
540
  const x = Object.assign(this.cropperOption, {
540
541
  img: f,
541
542
  type: "file",
542
543
  callback: (v) => {
543
- e = v, b();
544
+ e = v, S();
544
545
  },
545
546
  cancel: () => {
546
547
  this.loading = !1;
@@ -554,7 +555,7 @@ const X = {
554
555
  },
555
556
  handlePreview(t) {
556
557
  const e = () => {
557
- const i = this.fileList.findIndex((s) => s.url === t.url);
558
+ const i = this.fileList.findIndex((o) => o.url === t.url);
558
559
  this.$ImagePreview(this.fileList, i);
559
560
  };
560
561
  typeof this.uploadPreview == "function" ? this.uploadPreview(t, this.column, e) : e();
@@ -1,6 +1,6 @@
1
1
  import { p as s } from "../chunks/permission.ce5d2121.mjs";
2
2
  import { c } from "../chunks/config.46422d7f.mjs";
3
- import { o } from "../chunks/util.17330567.mjs";
3
+ import { o } from "../chunks/util.505913d9.mjs";
4
4
  import { n as a } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
5
  var d = function() {
6
6
  var e = this, i = e.$createElement, t = e._self._c || i;
@@ -1,7 +1,7 @@
1
1
  import { s as S } from "../chunks/slot.4b391395.mjs";
2
2
  import { c as o } from "../chunks/config.46422d7f.mjs";
3
- import { d as w } from "../chunks/dataformat.25e22176.mjs";
4
- import { o as h, v as g, d as m } from "../chunks/util.17330567.mjs";
3
+ import { d as w } from "../chunks/dataformat.ab62230f.mjs";
4
+ import { o as h, v as g, d as m } from "../chunks/util.505913d9.mjs";
5
5
  import { n as F } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
6
6
  var _ = function() {
7
7
  var e = this, a = e.$createElement, c = e._self._c || a;
@@ -110,9 +110,9 @@ const y = {
110
110
  const l = u < this.searchIndex, d = {};
111
111
  Object.keys(r).forEach((i) => {
112
112
  const p = "search";
113
- if (i != "searchProp" && i.includes(p)) {
113
+ if (i !== "searchProp" && i.includes(p)) {
114
114
  let n = i.replace(p, "");
115
- if (n.length == 0)
115
+ if (n.length === 0)
116
116
  return;
117
117
  n = n.replace(n[0], n[0].toLowerCase()), d[n] = r[i];
118
118
  }
@@ -203,7 +203,9 @@ const y = {
203
203
  },
204
204
  methods: {
205
205
  initFun() {
206
- ["searchReset", "searchChange"].forEach((e) => this.crud[e] = this[e]);
206
+ ["searchReset", "searchChange"].forEach((e) => {
207
+ this.crud[e] = this[e];
208
+ });
207
209
  },
208
210
  getSlotName(e) {
209
211
  return e.replace("Search", "");
@@ -9,7 +9,7 @@ var a = (e, o, t) => o in e ? c(e, o, { enumerable: !0, configurable: !0, writab
9
9
  u.call(o, t) && a(e, t, o[t]);
10
10
  return e;
11
11
  };
12
- import { z as f } from "../chunks/util.17330567.mjs";
12
+ import { B as f } from "../chunks/util.505913d9.mjs";
13
13
  import { VueCropper as m } from "vue-cropper";
14
14
  import d from "vue";
15
15
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -9,7 +9,7 @@ var r = (e, i, t) => i in e ? v(e, i, { enumerable: !0, configurable: !0, writab
9
9
  h.call(i, t) && r(e, t, i[t]);
10
10
  return e;
11
11
  };
12
- import { i as p } from "../chunks/util.17330567.mjs";
12
+ import { i as p } from "../chunks/util.505913d9.mjs";
13
13
  import { setPx as u } from "@web-utils/core";
14
14
  import f from "vue";
15
15
  import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";