@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-form/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var x = (e, i, r) => new Promise((s, p) => {
1
+ var D = (e, i, r) => new Promise((s, p) => {
2
2
  var t = (o) => {
3
3
  try {
4
4
  a(r.next(o));
@@ -14,30 +14,19 @@ var x = (e, i, r) => new Promise((s, p) => {
14
14
  }, a = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(t, l);
15
15
  a((r = r.apply(e, i)).next());
16
16
  });
17
- import { d as V } from "../chunks/detail.d6f8e347.mjs";
18
- import { i as I } from "../chunks/init.47f219b4.mjs";
19
- import { s as S, d as F, u as A, x as W, p as G, j as $, a as H, o as R, y as U } from "../chunks/util.ae730cde.mjs";
20
- import { a as q, c as K, b as J, d as Q, f as X } from "../chunks/dataformat.e655611c.mjs";
21
- import { s as Y } from "../chunks/dic.eaac0823.mjs";
22
- import { p as Z } from "../chunks/packages.1fc9ccba.mjs";
17
+ import { F as B, d as I } from "../chunks/FormTemp.7f91629d.mjs";
18
+ import { i as M } from "../chunks/init.47f219b4.mjs";
19
+ import { s as y, d as x, u as L, x as V, p as A, j as S, a as W, o as G, y as R } from "../chunks/util.ae730cde.mjs";
20
+ import { d as H, c as U, a as q, b as K, f as J } from "../chunks/dataformat.f995e2f9.mjs";
21
+ import { s as Q } from "../chunks/dic.eaac0823.mjs";
22
+ import { p as X } from "../chunks/packages.1fc9ccba.mjs";
23
23
  import { isBlank as f } from "@web-utils/core";
24
- import ee from "element-ui/lib/collapse-item";
25
- import te from "element-ui/lib/collapse";
26
- import { n as g } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
27
- import _ from "element-ui/lib/button";
28
- import N from "element-ui/lib/form-item";
29
- import E from "element-ui/lib/col";
30
- import ie from "../chunks/FormTemp.d079292b.mjs";
31
- import re from "element-ui/lib/tooltip";
32
- import se from "element-ui/lib/tab-pane";
33
- import ae from "element-ui/lib/tabs";
34
- import oe from "element-ui/lib/row";
35
- import ne from "element-ui/lib/form";
36
- const le = (e, i, r, s) => {
24
+ import { n as $ } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
25
+ const Y = (e, i, r, s) => {
37
26
  if (!s)
38
27
  return;
39
28
  if (!window.Mock) {
40
- Z.logs("mock");
29
+ X.logs("mock");
41
30
  return;
42
31
  }
43
32
  const t = (window.Mock || {}).Random, l = {};
@@ -56,33 +45,33 @@ const le = (e, i, r, s) => {
56
45
  const u = n.indexOf("://");
57
46
  return c === !1 ? n = n.substring(u + 3) : n = `http://${n.substring(u + 3)}`, n;
58
47
  }
59
- function P({ format: c, now: n }) {
48
+ function w({ format: c, now: n }) {
60
49
  return n ? t.now(c) : t.datetime(c);
61
50
  }
62
- function z({ min: c, max: n }) {
51
+ function T({ min: c, max: n }) {
63
52
  return t.csentence(c, n);
64
53
  }
65
- function j() {
54
+ function N() {
66
55
  return t.county(!0);
67
56
  }
68
- function M({ dic: c, props: n, columnType: u, multiple: h }) {
57
+ function P({ dic: c, props: n, columnType: u, multiple: h }) {
69
58
  const m = n.value || "value", b = c.length;
70
59
  if (["checkbox"].includes(u) || h) {
71
- const v = o({ min: 1, max: b }), y = [];
72
- for (let O = 0; O < v; O++) {
73
- let k = !0;
74
- for (; k; ) {
75
- const L = o({ min: 0, max: b - 1 }), D = c[L][m];
76
- y.includes(D) || (y.push(D), k = !1);
60
+ const _ = o({ min: 1, max: b }), v = [];
61
+ for (let g = 0; g < _; g++) {
62
+ let O = !0;
63
+ for (; O; ) {
64
+ const j = o({ min: 0, max: b - 1 }), k = c[j][m];
65
+ v.includes(k) || (v.push(k), O = !1);
77
66
  }
78
67
  }
79
- return y;
68
+ return v;
80
69
  } else {
81
- const v = o({ min: 0, max: b - 1 });
82
- return c[v][m];
70
+ const _ = o({ min: 0, max: b - 1 });
71
+ return c[_][m];
83
72
  }
84
73
  }
85
- function B() {
74
+ function z() {
86
75
  Object.keys(e).forEach((c) => {
87
76
  const n = e[c];
88
77
  if (n.mock && typeof n.mock == "object") {
@@ -95,35 +84,35 @@ const le = (e, i, r, s) => {
95
84
  l[n.prop] = o(u);
96
85
  break;
97
86
  case "datetime":
98
- l[n.prop] = P(u);
87
+ l[n.prop] = w(u);
99
88
  break;
100
89
  case "word":
101
- l[n.prop] = z(u);
90
+ l[n.prop] = T(u);
102
91
  break;
103
92
  case "url":
104
93
  l[n.prop] = d(u);
105
94
  break;
106
95
  case "county":
107
- l[n.prop] = j();
96
+ l[n.prop] = N();
108
97
  break;
109
98
  case "dic":
110
- l[n.prop] = M(u);
99
+ l[n.prop] = P(u);
111
100
  break;
112
101
  }
113
102
  } else
114
103
  n.mock instanceof Function && (l[n.prop] = n.mock(r));
115
104
  });
116
105
  }
117
- return B(), l;
106
+ return z(), l;
118
107
  };
119
- var pe = function() {
108
+ var Z = function() {
120
109
  var e = this, i = e.$createElement, r = e._self._c || i;
121
110
  return e.display ? r("div", {
122
111
  class: ["avue-group", {
123
112
  "avue-group--header": !e.isHeader,
124
113
  "avue-group__arrow": !e.arrow
125
114
  }]
126
- }, [e._t("tabs"), r(te, {
115
+ }, [e._t("tabs"), r("ElCollapse", {
127
116
  attrs: {
128
117
  value: e.text
129
118
  },
@@ -137,7 +126,7 @@ var pe = function() {
137
126
  },
138
127
  expression: "activeName"
139
128
  }
140
- }, [r(ee, {
129
+ }, [r("ElCollapseItem", {
141
130
  attrs: {
142
131
  name: 1,
143
132
  disabled: !e.arrow
@@ -158,8 +147,8 @@ var pe = function() {
158
147
  proxy: !0
159
148
  }], null, !0)
160
149
  }, [e._t("default")], 2)], 1)], 2) : e._e();
161
- }, ue = [];
162
- const fe = {
150
+ }, ee = [];
151
+ const te = {
163
152
  name: "FormGroup",
164
153
  props: {
165
154
  arrow: {
@@ -211,41 +200,41 @@ const fe = {
211
200
  this.$emit("change", e);
212
201
  }
213
202
  }
214
- }, C = {};
215
- var ce = /* @__PURE__ */ g(
216
- fe,
217
- pe,
218
- ue,
203
+ }, F = {};
204
+ var ie = /* @__PURE__ */ $(
205
+ te,
206
+ Z,
207
+ ee,
219
208
  !1,
220
- de,
209
+ re,
221
210
  null,
222
211
  null,
223
212
  null
224
213
  );
225
- function de(e) {
226
- for (let i in C)
227
- this[i] = C[i];
214
+ function re(e) {
215
+ for (let i in F)
216
+ this[i] = F[i];
228
217
  }
229
- const he = /* @__PURE__ */ function() {
230
- return ce.exports;
218
+ const se = /* @__PURE__ */ function() {
219
+ return ie.exports;
231
220
  }();
232
- var me = function() {
221
+ var ae = function() {
233
222
  var e = this, i = e.$createElement, r = e._self._c || i;
234
- return e.formSafe.parentOption.menuBtn !== !1 ? r(E, {
223
+ return e.formSafe.parentOption.menuBtn !== !1 ? r("ElCol", {
235
224
  class: ["menu", e.formSafe.menuPosition, "no-print"],
236
225
  style: e.styleName,
237
226
  attrs: {
238
227
  span: e.menuSpan,
239
228
  md: e.menuSpan
240
229
  }
241
- }, [r(N, {
230
+ }, [r("ElFormItem", {
242
231
  staticStyle: {
243
232
  "text-align": "center"
244
233
  },
245
234
  attrs: {
246
235
  "label-width": "0px"
247
236
  }
248
- }, [e.formSafe.isMock ? r(_, {
237
+ }, [e.formSafe.isMock ? r("ElButton", {
249
238
  attrs: {
250
239
  type: "primary",
251
240
  size: e.formSafe.controlSize,
@@ -255,7 +244,7 @@ var me = function() {
255
244
  on: {
256
245
  click: e.formSafe.handleMock
257
246
  }
258
- }, [e._v(" " + e._s(e.formSafe.parentOption.mockText || "模拟") + " ")]) : e._e(), e.formSafe.isPrint ? r(_, {
247
+ }, [e._v(" " + e._s(e.formSafe.parentOption.mockText || "模拟") + " ")]) : e._e(), e.formSafe.isPrint ? r("ElButton", {
259
248
  attrs: {
260
249
  type: "primary",
261
250
  size: e.formSafe.controlSize,
@@ -265,7 +254,7 @@ var me = function() {
265
254
  on: {
266
255
  click: e.formSafe.handlePrint
267
256
  }
268
- }, [e._v(" " + e._s(e.formSafe.parentOption.printText || "打印") + " ")]) : e._e(), e.formSafe.parentOption.submitBtn !== !1 ? r(_, {
257
+ }, [e._v(" " + e._s(e.formSafe.parentOption.printText || "打印") + " ")]) : e._e(), e.formSafe.parentOption.submitBtn !== !1 ? r("ElButton", {
269
258
  attrs: {
270
259
  type: "primary",
271
260
  size: e.formSafe.controlSize,
@@ -275,7 +264,7 @@ var me = function() {
275
264
  on: {
276
265
  click: e.formSafe.submit
277
266
  }
278
- }, [e._v(" " + e._s(e.formSafe.parentOption.submitText || "提交") + " ")]) : e._e(), e.formSafe.parentOption.emptyBtn !== !1 ? r(_, {
267
+ }, [e._v(" " + e._s(e.formSafe.parentOption.submitText || "提交") + " ")]) : e._e(), e.formSafe.parentOption.emptyBtn !== !1 ? r("ElButton", {
279
268
  attrs: {
280
269
  icon: e.formSafe.parentOption.emptyIcon || "el-icon-delete",
281
270
  size: e.formSafe.controlSize,
@@ -288,8 +277,8 @@ var me = function() {
288
277
  disabled: e.formSafe.allDisabled,
289
278
  size: e.formSafe.controlSize
290
279
  })], 2)], 1) : e._e();
291
- }, _e = [];
292
- const be = {
280
+ }, oe = [];
281
+ const ne = {
293
282
  name: "FyFormMenu",
294
283
  inject: ["formSafe"],
295
284
  computed: {
@@ -302,25 +291,25 @@ const be = {
302
291
  } : {};
303
292
  }
304
293
  }
305
- }, w = {};
306
- var ve = /* @__PURE__ */ g(
307
- be,
308
- me,
309
- _e,
294
+ }, C = {};
295
+ var le = /* @__PURE__ */ $(
296
+ ne,
297
+ ae,
298
+ oe,
310
299
  !1,
311
- ye,
300
+ pe,
312
301
  null,
313
302
  null,
314
303
  null
315
304
  );
316
- function ye(e) {
317
- for (let i in w)
318
- this[i] = w[i];
305
+ function pe(e) {
306
+ for (let i in C)
307
+ this[i] = C[i];
319
308
  }
320
- const Se = /* @__PURE__ */ function() {
321
- return ve.exports;
309
+ const ue = /* @__PURE__ */ function() {
310
+ return le.exports;
322
311
  }();
323
- var $e = function() {
312
+ var fe = function() {
324
313
  var e = this, i = e.$createElement, r = e._self._c || i;
325
314
  return r("div", {
326
315
  class: ["avue-form", {
@@ -329,7 +318,7 @@ var $e = function() {
329
318
  style: {
330
319
  width: e.setPx(e.parentOption.formWidth, "100%")
331
320
  }
332
- }, [r(ne, {
321
+ }, [r("ElForm", {
333
322
  ref: "form",
334
323
  attrs: {
335
324
  "status-icon": e.parentOption.statusIcon,
@@ -344,7 +333,7 @@ var $e = function() {
344
333
  s.preventDefault();
345
334
  }
346
335
  }
347
- }, [r(oe, {
336
+ }, [r("ElRow", {
348
337
  class: {
349
338
  "avue-form__tabs": e.isTabs
350
339
  },
@@ -371,7 +360,7 @@ var $e = function() {
371
360
  scopedSlots: e._u([{
372
361
  key: "tabs",
373
362
  fn: function() {
374
- return [e.isTabs && p === 1 ? r(ae, {
363
+ return [e.isTabs && p === 1 ? r("ElTabs", {
375
364
  staticClass: "avue-form__tabs",
376
365
  attrs: {
377
366
  type: e.tabsType
@@ -387,7 +376,7 @@ var $e = function() {
387
376
  expression: "activeName"
388
377
  }
389
378
  }, [e._l(e.columnOption, function(t, l) {
390
- return [e.vaildDisplay(t) && l !== 0 ? r(se, {
379
+ return [e.vaildDisplay(t) && l !== 0 ? r("ElTabPane", {
391
380
  key: l,
392
381
  attrs: {
393
382
  name: `${l}`
@@ -427,7 +416,7 @@ var $e = function() {
427
416
  "avue-form__group--flex": s.flex === !1
428
417
  }]
429
418
  }, [e._l(s.column, function(t, l) {
430
- return [e.vaildDisplay(t) ? r(E, {
419
+ return [e.vaildDisplay(t) ? r("ElCol", {
431
420
  key: l,
432
421
  class: ["avue-form__row", {
433
422
  "avue--detail avue--detail__column": e.vaildDetail(t)
@@ -445,7 +434,7 @@ var $e = function() {
445
434
  push: t.push || s.push,
446
435
  pull: t.pull || s.pull
447
436
  }
448
- }, [r(N, {
437
+ }, [r("ElFormItem", {
449
438
  class: `avue-form__item--${t.labelPosition || s.labelPosition || ""}`,
450
439
  attrs: {
451
440
  prop: t.prop,
@@ -470,7 +459,7 @@ var $e = function() {
470
459
  } : t.labelTip ? {
471
460
  key: "label",
472
461
  fn: function() {
473
- return [r(re, {
462
+ return [r("ElTooltip", {
474
463
  staticClass: "item",
475
464
  attrs: {
476
465
  effect: "dark",
@@ -585,11 +574,11 @@ var $e = function() {
585
574
  }
586
575
  }], null, !0)
587
576
  }) : e._e()], 2)], 1)], 1);
588
- }, ge = [];
589
- const Oe = {
577
+ }, ce = [];
578
+ const de = {
590
579
  name: "FyForm",
591
- components: { FormTemp: ie, FyFormMenu: Se, FormGroup: he },
592
- mixins: [I],
580
+ components: { FormTemp: B, FyFormMenu: ue, FormGroup: se },
581
+ mixins: [M],
593
582
  provide() {
594
583
  return {
595
584
  formSafe: this
@@ -657,7 +646,7 @@ const Oe = {
657
646
  return this.boxType === "view";
658
647
  },
659
648
  gutter() {
660
- return S((this.parentOption.gutter || 10) / 2);
649
+ return y((this.parentOption.gutter || 10) / 2);
661
650
  },
662
651
  detail() {
663
652
  return this.parentOption.detail;
@@ -692,7 +681,7 @@ const Oe = {
692
681
  return this.tableOption || {};
693
682
  },
694
683
  columnOption() {
695
- const e = this.tableOption.column || [], i = F(this.tableOption.group) || [], r = this.tableOption.footer || [];
684
+ const e = this.tableOption.column || [], i = x(this.tableOption.group) || [], r = this.tableOption.footer || [];
696
685
  return i.unshift({
697
686
  header: !1,
698
687
  column: e
@@ -701,8 +690,8 @@ const Oe = {
701
690
  column: r
702
691
  }), i.forEach((s) => {
703
692
  s.column = s.column || [], s.column.forEach((p, t) => {
704
- p.display !== !1 && !this.isMobile && (p = q(p, this.itemSpanDefault, t === 0));
705
- }), s.column = K(s.column), s.column = s.column.sort((p, t) => (t.order || 0) - (p.order || 0));
693
+ p.display !== !1 && !this.isMobile && (p = H(p, this.itemSpanDefault, t === 0));
694
+ }), s.column = U(s.column), s.column = s.column.sort((p, t) => (t.order || 0) - (p.order || 0));
706
695
  }), i;
707
696
  },
708
697
  menuPosition: function() {
@@ -768,11 +757,11 @@ const Oe = {
768
757
  });
769
758
  },
770
759
  methods: {
771
- setPx: S,
772
- deepClone: F,
773
- getComponent: J,
774
- getPlaceholder: Q,
775
- uploadFun: A,
760
+ setPx: y,
761
+ deepClone: x,
762
+ getComponent: q,
763
+ getPlaceholder: K,
764
+ uploadFun: L,
776
765
  getDisabled(e) {
777
766
  return this.vaildDetail(e) || this.isDetail || this.vaildDisabled(e) || this.allDisabled;
778
767
  },
@@ -784,7 +773,7 @@ const Oe = {
784
773
  },
785
774
  // 初始化表单
786
775
  dataFormat() {
787
- const e = X(this.propOption).tableForm, i = this.value, r = {};
776
+ const e = J(this.propOption).tableForm, i = this.value, r = {};
788
777
  Object.entries(Object.assign(e, i)).forEach((s) => {
789
778
  const p = s[0], t = s[1];
790
779
  f(i[p]) ? r[p] = t : r[p] = i[p];
@@ -799,11 +788,11 @@ const Oe = {
799
788
  const p = [];
800
789
  if (r) {
801
790
  const t = this.$watch(`form.${i}`, (a, o) => {
802
- a !== o && W(this.form, r, a);
791
+ a !== o && V(this.form, r, a);
803
792
  }), l = this.$watch(`form.${r}`, (a, o) => {
804
793
  a !== o && this.$set(this.form, i, a);
805
794
  });
806
- p.push(t), p.push(l), this.$set(this.form, i, G(this.form, r));
795
+ p.push(t), p.push(l), this.$set(this.form, i, A(this.form, r));
807
796
  }
808
797
  if (s) {
809
798
  const t = () => {
@@ -830,11 +819,11 @@ const Oe = {
830
819
  this.$emit("input", this.form), this.$emit("change", this.form);
831
820
  },
832
821
  setLabel() {
833
- this.tableOption.filterNull === !0 && (this.form = $(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = $(this.form, ["$"], !1) : this.propOption.forEach((e) => {
822
+ this.tableOption.filterNull === !0 && (this.form = S(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = S(this.form, ["$"], !1) : this.propOption.forEach((e) => {
834
823
  const i = this.DIC[e.prop];
835
824
  if (f(i))
836
825
  return;
837
- const r = V(this.form, e, this.tableOption, i);
826
+ const r = I(this.form, e, this.tableOption, i);
838
827
  r ? this.$set(this.form, `$${e.prop}`, r) : this.$delete(this.form, `$${e.prop}`);
839
828
  });
840
829
  },
@@ -846,7 +835,7 @@ const Oe = {
846
835
  },
847
836
  getLabelWidth(e, i) {
848
837
  let r;
849
- return f(e.labelWidth) ? f(i.labelWidth) ? r = this.parentOption.labelWidth : r = i.labelWidth : r = e.labelWidth, S(r, this.labelWidth);
838
+ return f(e.labelWidth) ? f(i.labelWidth) ? r = this.parentOption.labelWidth : r = i.labelWidth : r = e.labelWidth, y(r, this.labelWidth);
850
839
  },
851
840
  // 对部分表单字段进行校验的方法
852
841
  validateField(e) {
@@ -865,14 +854,14 @@ const Oe = {
865
854
  const t = p, l = this.form[i.prop], a = this.findObject(e, t);
866
855
  f(a) || (this.formList.includes(s) && r.forEach((o) => {
867
856
  this.form[o] = "", this.$set(this.DIC, o, []);
868
- }), !(f(r) || f(l) || f(a)) && Y({
857
+ }), !(f(r) || f(l) || f(a)) && Q({
869
858
  column: a,
870
859
  value: l,
871
860
  form: this.form
872
861
  }).then((o) => {
873
862
  this.formList.includes(s) || this.formList.push(s);
874
863
  const d = o || [];
875
- this.$set(this.DIC, t, d), !f(d) && !f(d) && !f(a.cascaderIndex) && f(this.form[t]) && (this.form[t] = d[a.cascaderIndex][(a.props || {}).value || H.value]);
864
+ this.$set(this.DIC, t, d), !f(d) && !f(d) && !f(a.cascaderIndex) && f(this.form[t]) && (this.form[t] = d[a.cascaderIndex][(a.props || {}).value || W.value]);
876
865
  }));
877
866
  });
878
867
  });
@@ -885,7 +874,7 @@ const Oe = {
885
874
  },
886
875
  handleMock() {
887
876
  this.isMock && (this.columnOption.forEach((e) => {
888
- const i = le(e.column, this.DIC, this.form, this.isMock);
877
+ const i = Y(e.column, this.DIC, this.form, this.isMock);
889
878
  f(i) || Object.keys(i).forEach((r) => {
890
879
  this.form[r] = i[r];
891
880
  });
@@ -925,10 +914,10 @@ const Oe = {
925
914
  // 验证表单是否显隐
926
915
  vaildDisplay(e) {
927
916
  let i;
928
- return f(e.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? R(e[i], !0) : !0;
917
+ return f(e.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? G(e[i], !0) : !0;
929
918
  },
930
919
  clearValidate(e) {
931
- return x(this, null, function* () {
920
+ return D(this, null, function* () {
932
921
  var i;
933
922
  (i = this.$refs.form) == null || i.clearValidate(e);
934
923
  });
@@ -960,7 +949,7 @@ const Oe = {
960
949
  resetForm(e = !0) {
961
950
  if (e) {
962
951
  const i = this.propOption.map((r) => r.prop);
963
- this.form = U(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
952
+ this.form = R(this.form, i, (this.tableOption.filterParams || []).concat([this.rowKey]));
964
953
  }
965
954
  this.$nextTick(() => {
966
955
  this.clearValidate(), this.$emit("reset-change");
@@ -977,28 +966,28 @@ const Oe = {
977
966
  },
978
967
  submit() {
979
968
  this.validate((e, i) => {
980
- e ? this.$emit("submit", $(this.form, ["$"]), this.hide) : this.$emit("error", i);
969
+ e ? this.$emit("submit", S(this.form, ["$"]), this.hide) : this.$emit("error", i);
981
970
  });
982
971
  }
983
972
  }
984
- }, T = {};
985
- var ke = /* @__PURE__ */ g(
986
- Oe,
987
- $e,
988
- ge,
973
+ }, E = {};
974
+ var he = /* @__PURE__ */ $(
975
+ de,
976
+ fe,
977
+ ce,
989
978
  !1,
990
- De,
979
+ me,
991
980
  null,
992
981
  null,
993
982
  null
994
983
  );
995
- function De(e) {
996
- for (let i in T)
997
- this[i] = T[i];
984
+ function me(e) {
985
+ for (let i in E)
986
+ this[i] = E[i];
998
987
  }
999
- const Ue = /* @__PURE__ */ function() {
1000
- return ke.exports;
988
+ const De = /* @__PURE__ */ function() {
989
+ return he.exports;
1001
990
  }();
1002
991
  export {
1003
- Ue as default
992
+ De as default
1004
993
  };