@web-utils/component 2.7.6 → 2.7.8

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 (69) hide show
  1. package/dist/chunks/{ConfigDate.vue_vue_type_template_lang.420fa897.js → ConfigDate.vue_vue_type_template_lang.116fbad4.js} +1 -1
  2. package/dist/chunks/{ConfigDynamic.vue_vue_type_template_lang.82d24ab0.js → ConfigDynamic.vue_vue_type_template_lang.99082e47.js} +1 -1
  3. package/dist/chunks/{ConfigSelect.vue_vue_type_template_lang.7db7e57f.js → ConfigSelect.vue_vue_type_template_lang.e7a9d5b7.js} +6 -6
  4. package/dist/chunks/{ConfigTable.vue_vue_type_template_lang.3e8136d9.js → ConfigTable.vue_vue_type_template_lang.e9060616.js} +4 -1
  5. package/dist/chunks/{ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.3770c37e.js → ConfigTree.vue_vue_type_style_index_0_scoped_true_lang.89ec5376.js} +127 -126
  6. package/dist/chunks/{ConfigUpload.vue_vue_type_template_lang.531a9b2a.js → ConfigUpload.vue_vue_type_template_lang.48dd814b.js} +3 -3
  7. package/dist/chunks/{WidgetConfig.vue_vue_type_template_lang.b4bf56e9.js → WidgetConfig.vue_vue_type_template_lang.24a87d72.js} +73 -32
  8. package/dist/chunks/{WidgetForm.vue_vue_type_template_lang.82248338.js → WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js} +12 -7
  9. package/dist/chunks/{WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js → WidgetFormGroup.vue_vue_type_template_lang.47789aae.js} +8 -3
  10. package/dist/components/afd-column/index.js +8 -5
  11. package/dist/components/chat/index.js +14 -14
  12. package/dist/components/column-slot/index.js +25 -26
  13. package/dist/components/config-array/index.js +13 -11
  14. package/dist/components/config-color/index.js +4 -2
  15. package/dist/components/config-custom/index.js +3 -1
  16. package/dist/components/config-date/index.js +7 -5
  17. package/dist/components/config-dynamic/index.js +10 -8
  18. package/dist/components/config-event/index.js +3 -1
  19. package/dist/components/config-group/index.js +8 -6
  20. package/dist/components/config-input/index.js +8 -5
  21. package/dist/components/config-map/index.js +10 -8
  22. package/dist/components/config-number/index.js +12 -10
  23. package/dist/components/config-rate/index.js +4 -2
  24. package/dist/components/config-rate/style.css +1 -1
  25. package/dist/components/config-select/index.js +4 -2
  26. package/dist/components/config-slider/index.js +8 -6
  27. package/dist/components/config-switch/index.js +4 -2
  28. package/dist/components/config-switch/style.css +1 -1
  29. package/dist/components/config-table/index.js +4 -2
  30. package/dist/components/config-textarea/index.js +5 -3
  31. package/dist/components/config-title/index.js +5 -3
  32. package/dist/components/config-tree/index.js +5 -3
  33. package/dist/components/config-tree/style.css +1 -1
  34. package/dist/components/config-u-editor/index.js +6 -4
  35. package/dist/components/config-upload/index.js +5 -3
  36. package/dist/components/dialog-excel/index.js +3 -3
  37. package/dist/components/dialog-filter/index.js +1 -1
  38. package/dist/components/flow/index.js +4 -4
  39. package/dist/components/form-config/index.js +5 -3
  40. package/dist/components/form-temp/index.js +1 -1
  41. package/dist/components/fy-array/index.js +20 -20
  42. package/dist/components/{article → fy-article}/index.js +1 -1
  43. package/dist/components/{article → fy-article}/style.css +0 -0
  44. package/dist/components/fy-checkbox/index.js +1 -1
  45. package/dist/components/{code → fy-code}/index.js +1 -1
  46. package/dist/components/fy-curd/index.js +4 -4
  47. package/dist/components/fy-draggable/index.js +1 -1
  48. package/dist/components/fy-dynamic/index.js +42 -44
  49. package/dist/components/fy-form/index.js +88 -87
  50. package/dist/components/fy-form-design/index.js +14 -6
  51. package/dist/components/fy-input-tree/index.js +1 -1
  52. package/dist/components/{progress → fy-progress}/index.js +1 -1
  53. package/dist/components/fy-radio/index.js +9 -9
  54. package/dist/components/fy-switch/index.js +7 -7
  55. package/dist/components/fy-tree/index.js +1 -1
  56. package/dist/components/fy-u-editor/index.js +374 -0
  57. package/dist/components/fy-u-editor/style.css +1 -0
  58. package/dist/components/fy-upload/index.js +6 -6
  59. package/dist/components/header-search/index.js +9 -3
  60. package/dist/components/search/index.js +1 -1
  61. package/dist/components/table-page/index.js +5 -5
  62. package/dist/components/widget-config/index.js +21 -18
  63. package/dist/components/widget-form/index.js +8 -5
  64. package/dist/components/widget-form-group/index.js +13 -8
  65. package/dist/components/widget-form-table/index.js +17 -12
  66. package/dist/index.css +71 -62
  67. package/dist/index.es.js +2777 -2341
  68. package/package.json +4 -2
  69. package/web-types.json +234 -110
@@ -0,0 +1,374 @@
1
+ import "@wangeditor/editor/dist/css/style.css";
2
+ import { createEditor as p, createToolbar as f } from "@wangeditor/editor";
3
+ import { i as m } from "../../chunks/util.80e28481.js";
4
+ import { n as y } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
5
+ const g = (t) => {
6
+ let { region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n } = t;
7
+ return new window.OSS({ region: r, endpoint: i, accessKeyId: s, accessKeySecret: e, bucket: n });
8
+ }, C = (t, r, i) => {
9
+ let { scope: s, deadline: e } = i;
10
+ var n = JSON.stringify({ scope: s, deadline: e }), a = v(S(n)), c = window.CryptoJS.HmacSHA1(a, r), o = c.toString(window.CryptoJS.enc.Base64), l = t + ":" + _(o) + ":" + a;
11
+ return l;
12
+ };
13
+ function S(t) {
14
+ var r, i, s, e;
15
+ for (r = "", s = t.length, i = 0; i < s; i++)
16
+ e = t.charCodeAt(i), e >= 1 && e <= 127 ? r += t.charAt(i) : e > 2047 ? (r += String.fromCharCode(224 | e >> 12 & 15), r += String.fromCharCode(128 | e >> 6 & 63), r += String.fromCharCode(128 | e >> 0 & 63)) : (r += String.fromCharCode(192 | e >> 6 & 31), r += String.fromCharCode(128 | e >> 0 & 63));
17
+ return r;
18
+ }
19
+ var d = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
20
+ new Array(
21
+ -1,
22
+ -1,
23
+ -1,
24
+ -1,
25
+ -1,
26
+ -1,
27
+ -1,
28
+ -1,
29
+ -1,
30
+ -1,
31
+ -1,
32
+ -1,
33
+ -1,
34
+ -1,
35
+ -1,
36
+ -1,
37
+ -1,
38
+ -1,
39
+ -1,
40
+ -1,
41
+ -1,
42
+ -1,
43
+ -1,
44
+ -1,
45
+ -1,
46
+ -1,
47
+ -1,
48
+ -1,
49
+ -1,
50
+ -1,
51
+ -1,
52
+ -1,
53
+ -1,
54
+ -1,
55
+ -1,
56
+ -1,
57
+ -1,
58
+ -1,
59
+ -1,
60
+ -1,
61
+ -1,
62
+ -1,
63
+ -1,
64
+ 62,
65
+ -1,
66
+ -1,
67
+ -1,
68
+ 63,
69
+ 52,
70
+ 53,
71
+ 54,
72
+ 55,
73
+ 56,
74
+ 57,
75
+ 58,
76
+ 59,
77
+ 60,
78
+ 61,
79
+ -1,
80
+ -1,
81
+ -1,
82
+ -1,
83
+ -1,
84
+ -1,
85
+ -1,
86
+ 0,
87
+ 1,
88
+ 2,
89
+ 3,
90
+ 4,
91
+ 5,
92
+ 6,
93
+ 7,
94
+ 8,
95
+ 9,
96
+ 10,
97
+ 11,
98
+ 12,
99
+ 13,
100
+ 14,
101
+ 15,
102
+ 16,
103
+ 17,
104
+ 18,
105
+ 19,
106
+ 20,
107
+ 21,
108
+ 22,
109
+ 23,
110
+ 24,
111
+ 25,
112
+ -1,
113
+ -1,
114
+ -1,
115
+ -1,
116
+ -1,
117
+ -1,
118
+ 26,
119
+ 27,
120
+ 28,
121
+ 29,
122
+ 30,
123
+ 31,
124
+ 32,
125
+ 33,
126
+ 34,
127
+ 35,
128
+ 36,
129
+ 37,
130
+ 38,
131
+ 39,
132
+ 40,
133
+ 41,
134
+ 42,
135
+ 43,
136
+ 44,
137
+ 45,
138
+ 46,
139
+ 47,
140
+ 48,
141
+ 49,
142
+ 50,
143
+ 51,
144
+ -1,
145
+ -1,
146
+ -1,
147
+ -1,
148
+ -1
149
+ );
150
+ function v(t) {
151
+ var r, i, s, e, n, a;
152
+ for (s = t.length, i = 0, r = ""; i < s; ) {
153
+ if (e = t.charCodeAt(i++) & 255, i == s) {
154
+ r += d.charAt(e >> 2), r += d.charAt((e & 3) << 4), r += "==";
155
+ break;
156
+ }
157
+ if (n = t.charCodeAt(i++), i == s) {
158
+ r += d.charAt(e >> 2), r += d.charAt((e & 3) << 4 | (n & 240) >> 4), r += d.charAt((n & 15) << 2), r += "=";
159
+ break;
160
+ }
161
+ a = t.charCodeAt(i++), r += d.charAt(e >> 2), r += d.charAt((e & 3) << 4 | (n & 240) >> 4), r += d.charAt((n & 15) << 2 | (a & 192) >> 6), r += d.charAt(a & 63);
162
+ }
163
+ return r;
164
+ }
165
+ var _ = function(t) {
166
+ return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
167
+ }, b = function() {
168
+ var t = this, r = t.$createElement, i = t._self._c || r;
169
+ return i("div", {
170
+ staticClass: "avue-ueditor"
171
+ }, [i("div", {
172
+ ref: "toolbar",
173
+ staticClass: "fy-editor-toolbar"
174
+ }), i("div", {
175
+ ref: "editor",
176
+ staticClass: "fy-editor"
177
+ })]);
178
+ }, x = [];
179
+ const F = {
180
+ name: "FyUEditor",
181
+ props: {
182
+ data: {
183
+ type: Object,
184
+ default: () => ({})
185
+ },
186
+ headers: {
187
+ type: Object,
188
+ default: () => ({})
189
+ },
190
+ customConfig: {
191
+ type: Object,
192
+ default: () => ({})
193
+ },
194
+ toolbarConfig: {
195
+ type: Object,
196
+ default: () => ({})
197
+ },
198
+ propsHttp: {
199
+ type: Object,
200
+ default: () => ({})
201
+ },
202
+ options: {
203
+ type: Object,
204
+ default: () => ({})
205
+ },
206
+ ali: {
207
+ type: Object,
208
+ default: () => ({})
209
+ },
210
+ qiniu: {
211
+ type: Object,
212
+ default: () => ({})
213
+ },
214
+ oss: String,
215
+ action: String,
216
+ disabled: {
217
+ type: Boolean,
218
+ default: !1
219
+ },
220
+ value: {
221
+ type: String,
222
+ default: ""
223
+ },
224
+ placeholder: {
225
+ type: String,
226
+ default: ""
227
+ }
228
+ },
229
+ data() {
230
+ return {
231
+ editor: null
232
+ };
233
+ },
234
+ computed: {
235
+ fileName() {
236
+ return this.propsHttp.fileName || "file";
237
+ },
238
+ homeUrl() {
239
+ return this.propsHttp.home || "";
240
+ },
241
+ resKey() {
242
+ return this.propsHttp.res;
243
+ },
244
+ urlKey() {
245
+ return this.propsHttp.url || "url";
246
+ },
247
+ isQiniuOSS() {
248
+ return this.oss === "qiniu";
249
+ },
250
+ isAliOSS() {
251
+ return this.oss === "ali";
252
+ }
253
+ },
254
+ watch: {
255
+ disabled(t) {
256
+ t ? this.editor.disable() : this.editor.enable();
257
+ },
258
+ value(t) {
259
+ t ? this.editor.setHtml(t) : this.editor.clear();
260
+ }
261
+ },
262
+ mounted() {
263
+ this.initEdit();
264
+ },
265
+ beforeDestroy() {
266
+ var t;
267
+ (t = this.editor) == null || t.destroy();
268
+ },
269
+ methods: {
270
+ initEdit() {
271
+ const t = "default", { onFocus: r, onBlur: i, onChange: s, ...e } = this.customConfig, n = {
272
+ placeholder: this.placeholder,
273
+ readOnly: this.disabled,
274
+ MENU_CONF: {
275
+ uploadImage: {
276
+ customUpload: async (c) => {
277
+ const o = await this.uploadFile(c);
278
+ this.editor.dangerouslyInsertHtml(o);
279
+ }
280
+ },
281
+ uploadVideo: {
282
+ customUpload: async (c) => {
283
+ const o = await this.uploadFile(c);
284
+ this.editor.dangerouslyInsertHtml(o);
285
+ }
286
+ }
287
+ },
288
+ onFocus: () => {
289
+ this.$emit("focus", this.value);
290
+ },
291
+ onBlur: (c) => {
292
+ const o = c.getHtml();
293
+ this.$emit("blur", o);
294
+ },
295
+ onChange: (c) => {
296
+ const o = c.getHtml();
297
+ this.$emit("input", o);
298
+ },
299
+ ...e
300
+ };
301
+ this.editor = Object.seal(p({
302
+ selector: this.$refs.editor,
303
+ config: n,
304
+ html: this.value,
305
+ mode: t
306
+ }));
307
+ const a = {
308
+ ...this.toolbarConfig
309
+ };
310
+ this.toolbar = f({
311
+ editor: this.editor,
312
+ selector: this.$refs.toolbar,
313
+ config: a,
314
+ mode: t
315
+ });
316
+ },
317
+ uploadFile(t) {
318
+ return new Promise((r, i) => {
319
+ const s = Object.assign(this.headers, {
320
+ "Content-Type": "multipart/form-data"
321
+ });
322
+ let e = {}, n, a = new FormData(), c = this.action;
323
+ if (a.append(this.fileName, t), Object.keys(this.data).forEach((o) => {
324
+ a.append(o, this.data[o]);
325
+ }), this.isQiniuOSS) {
326
+ e = this.qiniu;
327
+ const o = C(e.AK, e.SK, {
328
+ scope: e.scope,
329
+ deadline: new Date().getTime() + e.deadline * 3600
330
+ });
331
+ a.append("token", o), c = "http://up.qiniu.com/";
332
+ } else
333
+ this.isAliOSS && (e = this.ali, n = g({
334
+ region: e.region,
335
+ endpoint: e.endpoint,
336
+ accessKeyId: e.accessKeyId,
337
+ accessKeySecret: e.accessKeySecret,
338
+ bucket: e.bucket
339
+ }));
340
+ (() => this.isAliOSS ? n.put(t.name, t) : this.$axios.post(c, a, { headers: s }))().then((o) => {
341
+ let l = {};
342
+ this.isAliOSS ? (l = o, l.url) : this.isQiniuOSS ? (l = o.data, l.key = e.url + l.key, l.key) : typeof this.resKey == "function" ? l = this.resKey(o.data) : (l = m(o.data, this.resKey), l = l[this.urlKey]);
343
+ var h = this.homeUrl + l;
344
+ r(h);
345
+ }).catch((o) => {
346
+ i(o);
347
+ });
348
+ });
349
+ },
350
+ getUEContent() {
351
+ return this.editor.getHtml();
352
+ }
353
+ }
354
+ }, u = {};
355
+ var A = /* @__PURE__ */ y(
356
+ F,
357
+ b,
358
+ x,
359
+ !1,
360
+ O,
361
+ null,
362
+ null,
363
+ null
364
+ );
365
+ function O(t) {
366
+ for (let r in u)
367
+ this[r] = u[r];
368
+ }
369
+ const j = /* @__PURE__ */ function() {
370
+ return A.exports;
371
+ }();
372
+ export {
373
+ j as default
374
+ };
@@ -0,0 +1 @@
1
+ .avue-ueditor{border:1px solid #ccc}.avue-ueditor .fy-editor-toolbar{border-bottom:1px solid #ccc}.avue-ueditor .fy-editor{height:300px}
@@ -47,14 +47,14 @@ function $(t, e = {}, i) {
47
47
  const B = (t, e, i) => {
48
48
  var o = JSON.stringify(i);
49
49
  __ENV__ === "development" && console && console.log("put_policy = ", o);
50
- var a = N(L(o));
50
+ var a = K(N(o));
51
51
  __ENV__ === "development" && console && console.log("encoded = ", a);
52
52
  var n = CryptoJS.HmacSHA1(a, e), l = n.toString(CryptoJS.enc.Base64);
53
53
  __ENV__ === "development" && console && console.log("encoded_signed=", l);
54
- var d = t + ":" + K(l) + ":" + a;
54
+ var d = t + ":" + L(l) + ":" + a;
55
55
  return __ENV__ === "development" && console && console.log("upload_token=", d), d;
56
56
  };
57
- function L(t) {
57
+ function N(t) {
58
58
  var e, i, o, a;
59
59
  for (e = "", o = t.length, i = 0; i < o; i++)
60
60
  a = t.charCodeAt(i), a >= 1 && a <= 127 ? e += t.charAt(i) : a > 2047 ? (e += String.fromCharCode(224 | a >> 12 & 15), e += String.fromCharCode(128 | a >> 6 & 63), e += String.fromCharCode(128 | a >> 0 & 63)) : (e += String.fromCharCode(192 | a >> 6 & 31), e += String.fromCharCode(128 | a >> 0 & 63));
@@ -191,7 +191,7 @@ new Array(
191
191
  -1,
192
192
  -1
193
193
  );
194
- function N(t) {
194
+ function K(t) {
195
195
  var e, i, o, a, n, l;
196
196
  for (o = t.length, i = 0, e = ""; i < o; ) {
197
197
  if (a = t.charCodeAt(i++) & 255, i == o) {
@@ -206,7 +206,7 @@ function N(t) {
206
206
  }
207
207
  return e;
208
208
  }
209
- var K = function(t) {
209
+ var L = function(t) {
210
210
  return t = t.replace(/\+/g, "-"), t = t.replace(/\//g, "_"), t;
211
211
  };
212
212
  const M = (t) => {
@@ -569,7 +569,7 @@ const H = {
569
569
  } else
570
570
  this.text.push(t[this.urlKey]);
571
571
  },
572
- handleRemove(t, e) {
572
+ handleRemove(t) {
573
573
  this.beforeRemove(t).then(() => {
574
574
  this.delete(t);
575
575
  });
@@ -101,9 +101,7 @@ const y = {
101
101
  }
102
102
  },
103
103
  option() {
104
- const e = this.crud.option;
105
- this.searchIndex = e.searchIndex || 2;
106
- const a = (t = []) => {
104
+ const e = this.crud.option, a = (t = []) => {
107
105
  t = m(t);
108
106
  let s = [], u = 0;
109
107
  return t = t.sort((r, l) => (l.searchOrder || 0) - (r.searchOrder || 0)), t.forEach((r) => {
@@ -189,6 +187,14 @@ const y = {
189
187
  },
190
188
  searchShow() {
191
189
  this.crud.getTableHeight();
190
+ },
191
+ option: {
192
+ immediate: !0,
193
+ deep: !0,
194
+ handler() {
195
+ var e;
196
+ this.searchIndex = ((e = this.option) == null ? void 0 : e.searchIndex) || 2;
197
+ }
192
198
  }
193
199
  },
194
200
  created() {
@@ -43,7 +43,7 @@ const c = {
43
43
  name: "Search",
44
44
  mixins: [n],
45
45
  props: {
46
- value: {}
46
+ value: [String, Object, Number, Boolean, Array]
47
47
  },
48
48
  computed: {
49
49
  form: {
@@ -1,7 +1,7 @@
1
1
  import { c as u } from "../../chunks/config.46422d7f.js";
2
2
  import { o as n } from "../../chunks/util.80e28481.js";
3
- import { n as l } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
- var g = function() {
3
+ import { n as g } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
4
+ var l = function() {
5
5
  var e = this, t = e.$createElement, i = e._self._c || t;
6
6
  return e.pageFlag && e.optVal(e.crud.tableOption.page, !0) ? i("ElCard", {
7
7
  staticClass: "avue-pagination",
@@ -77,7 +77,7 @@ const c = {
77
77
  this.crud.getTableHeight();
78
78
  },
79
79
  //如果当前页面删除没数据了调用第一页
80
- "defaultPage.total"(e) {
80
+ "defaultPage.total"() {
81
81
  this.defaultPage.total === (this.defaultPage.currentPage - 1) * this.defaultPage.pageSize && this.defaultPage.total != 0 && (this.defaultPage.currentPage = this.defaultPage.currentPage - 1, this.currentChange(this.defaultPage.currentPage));
82
82
  }
83
83
  },
@@ -110,9 +110,9 @@ const c = {
110
110
  }
111
111
  }
112
112
  }, r = {};
113
- var d = /* @__PURE__ */ l(
113
+ var d = /* @__PURE__ */ g(
114
114
  c,
115
- g,
115
+ l,
116
116
  s,
117
117
  !1,
118
118
  o,
@@ -1,6 +1,6 @@
1
- import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as v, l as y, m as _, n as b, o as x, p as q, q as w, t as R, u as k, v as T } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.b4bf56e9.js";
2
- import { n as j } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
- const E = [
1
+ import { s, r, C as o, a as l, b as d, c as f, d as u, e as c, f as g, g as p, h, i as C, j as m, k as b, l as v, m as y, n as _, o as x, p as j, q, t as w, u as R, v as k } from "../../chunks/WidgetConfig.vue_vue_type_template_lang.24a87d72.js";
2
+ import { n as O } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
3
+ const T = [
4
4
  "year",
5
5
  "month",
6
6
  "week",
@@ -11,7 +11,7 @@ const E = [
11
11
  "timerange",
12
12
  "datetimerange",
13
13
  "dates"
14
- ], S = {
14
+ ], E = {
15
15
  name: "WidgetConfig",
16
16
  components: {
17
17
  ConfigCustom: o,
@@ -25,20 +25,23 @@ const E = [
25
25
  ConfigColor: h,
26
26
  ConfigSelect: C,
27
27
  ConfigTree: m,
28
- ConfigDate: v,
29
- ConfigUpload: y,
30
- ConfigUEditor: _,
31
- ConfigMap: b,
28
+ ConfigDate: b,
29
+ ConfigUpload: v,
30
+ ConfigUEditor: y,
31
+ ConfigMap: _,
32
32
  ConfigGroup: x,
33
- ConfigArray: q,
34
- ConfigTitle: w,
35
- ConfigEvent: R,
36
- ConfigTable: k
33
+ ConfigArray: j,
34
+ ConfigTitle: q,
35
+ ConfigEvent: w,
36
+ ConfigTable: R
37
+ },
38
+ props: {
39
+ data: Object,
40
+ defaultValues: Object
37
41
  },
38
- props: ["data", "defaultValues"],
39
42
  data() {
40
43
  return {
41
- fields: T,
44
+ fields: k,
42
45
  collapse: ["1", "2", "3"],
43
46
  validator: {
44
47
  type: null,
@@ -54,7 +57,7 @@ const E = [
54
57
  if ((!e || i) && e !== "u-editor")
55
58
  return t + "custom";
56
59
  let a = "input";
57
- return [void 0, "input", "password", "url"].includes(e) ? a = "input" : E.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, t + a;
60
+ return [void 0, "input", "password", "url"].includes(e) ? a = "input" : T.includes(e) ? a = "date" : ["array", "img"].includes(e) ? a = "array" : ["tree", "cascader"].includes(e) ? a = "tree" : ["radio", "checkbox", "select"].includes(e) ? a = "select" : a = e, t + a;
58
61
  }
59
62
  },
60
63
  watch: {
@@ -85,8 +88,8 @@ const E = [
85
88
  }
86
89
  }
87
90
  }, n = {};
88
- var O = /* @__PURE__ */ j(
89
- S,
91
+ var S = /* @__PURE__ */ O(
92
+ E,
90
93
  r,
91
94
  s,
92
95
  !1,
@@ -100,7 +103,7 @@ function A(t) {
100
103
  this[e] = n[e];
101
104
  }
102
105
  const U = /* @__PURE__ */ function() {
103
- return O.exports;
106
+ return S.exports;
104
107
  }();
105
108
  export {
106
109
  U as default
@@ -1,13 +1,16 @@
1
1
  import { W as l } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js";
2
- import { W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js";
3
- import { s as n, r as d, W as c } from "../../chunks/WidgetForm.vue_vue_type_template_lang.82248338.js";
2
+ import { W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.47789aae.js";
3
+ import { s as n, r as d, W as c } from "../../chunks/WidgetForm.vue_vue_type_template_lang.fbb7d6b7.js";
4
4
  import h from "vuedraggable";
5
5
  import { d as a } from "../../chunks/util.80e28481.js";
6
6
  import { n as r } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
7
7
  const m = {
8
8
  name: "WidgetForm",
9
9
  components: { Draggable: h, WidgetFormItem: l, WidgetFormTable: o, WidgetFormGroup: c },
10
- props: ["data", "select"],
10
+ props: {
11
+ data: Object,
12
+ select: Object
13
+ },
11
14
  data() {
12
15
  return {
13
16
  selectWidget: this.select,
@@ -60,9 +63,9 @@ function g(e) {
60
63
  for (let t in s)
61
64
  this[t] = s[t];
62
65
  }
63
- const S = /* @__PURE__ */ function() {
66
+ const F = /* @__PURE__ */ function() {
64
67
  return p.exports;
65
68
  }();
66
69
  export {
67
- S as default
70
+ F as default
68
71
  };
@@ -1,12 +1,17 @@
1
- import { W as c } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js";
2
- import { s as h, r as d, W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.c636aabd.js";
1
+ import { W as a } from "../../chunks/WidgetFormTable.vue_vue_type_template_lang.30625146.js";
2
+ import { s as h, r as d, W as o } from "../../chunks/WidgetFormGroup.vue_vue_type_template_lang.47789aae.js";
3
3
  import r from "vuedraggable";
4
4
  import { d as n } from "../../chunks/util.80e28481.js";
5
5
  import { n as m } from "../../chunks/vueComponentNormalizer.71e2aa87.js";
6
6
  const g = {
7
7
  name: "WidgetFormGroup",
8
- components: { WidgetFormItem: c, WidgetFormTable: o, Draggable: r },
9
- props: ["data", "column", "select", "index"],
8
+ components: { WidgetFormItem: a, WidgetFormTable: o, Draggable: r },
9
+ props: {
10
+ data: Object,
11
+ column: Object,
12
+ select: Object,
13
+ index: Number
14
+ },
10
15
  data() {
11
16
  return {
12
17
  selectWidget: this.select
@@ -59,8 +64,8 @@ const g = {
59
64
  },
60
65
  handleWidgetGroupAdd(e, t) {
61
66
  let i = e.newIndex;
62
- const a = e.item;
63
- if (i === 1 && i > t.children.column.length - 1 && (i = 0), ["分组"].includes(a.textContent)) {
67
+ const c = e.item;
68
+ if (i === 1 && i > t.children.column.length - 1 && (i = 0), ["分组"].includes(c.textContent)) {
64
69
  t.children.column.splice(i, 1);
65
70
  return;
66
71
  }
@@ -83,9 +88,9 @@ function u(e) {
83
88
  for (let t in s)
84
89
  this[t] = s[t];
85
90
  }
86
- const T = /* @__PURE__ */ function() {
91
+ const M = /* @__PURE__ */ function() {
87
92
  return p.exports;
88
93
  }();
89
94
  export {
90
- T as default
95
+ M as default
91
96
  };