@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
package/fy-date/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n, e as o } from "../chunks/event.a018cb06.mjs";
1
+ import { p as n, e as o } from "../chunks/event.1ac32f1d.mjs";
2
2
  import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var s = function() {
4
4
  var e = this, a = e.$createElement, t = e._self._c || a;
@@ -1,5 +1,5 @@
1
1
  import { c as d } from "../chunks/config.46422d7f.mjs";
2
- import { d as l, o as a, u, v as n } from "../chunks/util.17330567.mjs";
2
+ import { d as l, o as n, u, v as a } from "../chunks/util.505913d9.mjs";
3
3
  import { isBlank as r } from "@web-utils/core";
4
4
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
5
5
  var p = function() {
@@ -96,12 +96,6 @@ var p = function() {
96
96
  const m = {
97
97
  name: "FyDialogForm",
98
98
  inject: ["crud"],
99
- props: {
100
- value: {
101
- type: Object,
102
- default: () => ({})
103
- }
104
- },
105
99
  data() {
106
100
  return {
107
101
  disabled: !1,
@@ -131,7 +125,7 @@ const m = {
131
125
  return this.crud.tableOption.dialogDirection;
132
126
  },
133
127
  width() {
134
- return a(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${d.dialogWidth}`);
128
+ return n(`${this.crud.tableOption.dialogWidth}`, this.crud.isMobile ? "100%" : `${d.dialogWidth}`);
135
129
  },
136
130
  dialogType() {
137
131
  return this.isDrawer ? "ElDrawer" : "ElementDialog";
@@ -173,7 +167,7 @@ const m = {
173
167
  }
174
168
  },
175
169
  methods: {
176
- optVal: a,
170
+ optVal: n,
177
171
  uploadFun: u,
178
172
  submit() {
179
173
  this.$refs.tableForm.submit();
@@ -208,7 +202,7 @@ const m = {
208
202
  rowSave(t) {
209
203
  this.crud.$emit(
210
204
  "row-save",
211
- n(this.crud.tableForm, ["$"]),
205
+ a(this.crud.tableForm, ["$"]),
212
206
  this.closeDialog,
213
207
  t
214
208
  );
@@ -217,7 +211,7 @@ const m = {
217
211
  rowUpdate(t) {
218
212
  this.crud.$emit(
219
213
  "row-update",
220
- n(this.crud.tableForm, ["$"]),
214
+ a(this.crud.tableForm, ["$"]),
221
215
  this.crud.tableIndex,
222
216
  this.closeDialog,
223
217
  t
@@ -1,4 +1,4 @@
1
- import { s as l, w as a } from "../chunks/util.17330567.mjs";
1
+ import { s as l, w as a } from "../chunks/util.505913d9.mjs";
2
2
  import { n as v } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var g = function() {
4
4
  var e = this, t = e.$createElement, s = e._self._c || t;
@@ -330,8 +330,8 @@ const _ = {
330
330
  },
331
331
  handleKeydown() {
332
332
  document.onkeydown = (e) => {
333
- const t = e || window.event || arguments.callee.caller.arguments[0], s = 1 * this.step;
334
- this.$refs.input.focused && (t && t.keyCode == 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode == 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode == 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode == 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
333
+ const t = e || window.event, s = this.step;
334
+ this.$refs.input.focused && (t && t.keyCode === 38 ? this.baseTop = a(this.baseTop - s) : t && t.keyCode === 37 ? this.baseLeft = a(this.baseLeft - s) : t && t.keyCode === 40 ? this.baseTop = a(this.baseTop + s) : t && t.keyCode === 39 && (this.baseLeft = a(this.baseLeft + s)), e.stopPropagation(), e.preventDefault(), this.$emit("blur", {
335
335
  index: this.index,
336
336
  width: this.baseWidth,
337
337
  height: this.baseHeight,
@@ -1,5 +1,5 @@
1
- import { p as u, e as c } from "../chunks/event.a018cb06.mjs";
2
- import { o as l, d as o } from "../chunks/util.17330567.mjs";
1
+ import { p as u, e as c } from "../chunks/event.1ac32f1d.mjs";
2
+ import { o as l, d as o } from "../chunks/util.505913d9.mjs";
3
3
  import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
4
4
  function f(e) {
5
5
  if (e == null)
@@ -63,7 +63,7 @@ var m = function() {
63
63
  scopedSlots: e._u([{
64
64
  key: "_index",
65
65
  fn: function(s) {
66
- return f(s), n("div", {}, [n("span", [e._v(e._s(i.$index + 1))])]);
66
+ return f(s), [n("div", [n("span", [e._v(e._s(i.$index + 1))])])];
67
67
  }
68
68
  }, e._l(e.columnSlot, function(s) {
69
69
  return {
@@ -1,4 +1,4 @@
1
- import { s as N } from "../chunks/util.17330567.mjs";
1
+ import { s as N } from "../chunks/util.505913d9.mjs";
2
2
  import { n as j } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
3
3
  var i = function() {
4
4
  var M = this, I = M.$createElement, g = M._self._c || I;
package/fy-form/index.mjs CHANGED
@@ -1,24 +1,24 @@
1
- var k = (t, i, s) => new Promise((r, p) => {
1
+ var D = (t, i, s) => new Promise((r, p) => {
2
2
  var e = (o) => {
3
3
  try {
4
4
  a(s.next(o));
5
- } catch (d) {
6
- p(d);
5
+ } catch (c) {
6
+ p(c);
7
7
  }
8
- }, n = (o) => {
8
+ }, l = (o) => {
9
9
  try {
10
10
  a(s.throw(o));
11
- } catch (d) {
12
- p(d);
11
+ } catch (c) {
12
+ p(c);
13
13
  }
14
- }, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(e, n);
14
+ }, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(e, l);
15
15
  a((s = s.apply(t, i)).next());
16
16
  });
17
- import { d as N } from "../chunks/detail.6e53ede8.mjs";
18
- import { i as j } from "../chunks/init.f04c7036.mjs";
19
- import { s as _, d as S, u as L, x as V, g as z, v as $, D as I, o as M, y as A } from "../chunks/util.17330567.mjs";
20
- import { b as B, c as W, g as R, a as G, f as H } from "../chunks/dataformat.25e22176.mjs";
21
- import { s as U } from "../chunks/dic.e8280157.mjs";
17
+ import { d as N } from "../chunks/detail.6e46de33.mjs";
18
+ import { i as j } from "../chunks/init.47ce5ed9.mjs";
19
+ import { s as _, d as S, u as L, x as V, g as z, v as $, D as I, o as M, y as A } from "../chunks/util.505913d9.mjs";
20
+ import { b as B, c as W, g as R, a as G, f as H } from "../chunks/dataformat.ab62230f.mjs";
21
+ import { s as U } from "../chunks/dic.7f13b573.mjs";
22
22
  import { p as q } from "../chunks/packages.1fc9ccba.mjs";
23
23
  import { isBlank as u } from "@web-utils/core";
24
24
  import { n as K } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
@@ -29,81 +29,81 @@ const J = (t, i, s, r) => {
29
29
  q.logs("mock");
30
30
  return;
31
31
  }
32
- const e = (window.Mock || {}).Random, n = {};
32
+ const e = (window.Mock || {}).Random, l = {};
33
33
  function a({ en: h }) {
34
34
  return h ? e.name(!0) : e.cname();
35
35
  }
36
- function o({ max: h, min: l, precision: f }) {
36
+ function o({ max: h, min: n, precision: f }) {
37
37
  if (f) {
38
- const c = `${e.float(l, h, f)}`, m = c.indexOf(".") + 1;
39
- return Number(c.substring(0, m + f));
38
+ const d = `${e.float(n, h, f)}`, m = d.indexOf(".") + 1;
39
+ return Number(d.substring(0, m + f));
40
40
  } else
41
- return e.integer(l, h);
41
+ return e.integer(n, h);
42
42
  }
43
- function d({ header: h, footer: l }) {
44
- let f = e.url();
45
- const c = f.indexOf("://");
46
- return h === !1 ? f = f.substring(c + 3) : f = `http://${f.substring(c + 3)}`, f;
43
+ function c({ header: h }) {
44
+ let n = e.url();
45
+ const f = n.indexOf("://");
46
+ return h === !1 ? n = n.substring(f + 3) : n = `http://${n.substring(f + 3)}`, n;
47
47
  }
48
- function F({ format: h, now: l }) {
49
- return l ? e.now(h) : e.datetime(h);
48
+ function F({ format: h, now: n }) {
49
+ return n ? e.now(h) : e.datetime(h);
50
50
  }
51
- function C({ min: h, max: l }) {
52
- return e.csentence(h, l);
51
+ function C({ min: h, max: n }) {
52
+ return e.csentence(h, n);
53
53
  }
54
54
  function T() {
55
55
  return e.county(!0);
56
56
  }
57
- function w({ dic: h, props: l, columnType: f, multiple: c }) {
58
- const m = l.value || "value", b = h.length;
59
- if (["checkbox"].includes(f) || c) {
60
- const v = o({ min: 1, max: b }), y = [];
61
- for (let O = 0; O < v; O++) {
57
+ function w({ dic: h, props: n, columnType: f, multiple: d }) {
58
+ const m = n.value || "value", b = h.length;
59
+ if (["checkbox"].includes(f) || d) {
60
+ const y = o({ min: 1, max: b }), v = [];
61
+ for (let O = 0; O < y; O++) {
62
62
  let g = !0;
63
63
  for (; g; ) {
64
- const P = o({ min: 0, max: b - 1 }), D = h[P][m];
65
- y.includes(D) || (y.push(D), g = !1);
64
+ const P = o({ min: 0, max: b - 1 }), k = h[P][m];
65
+ v.includes(k) || (v.push(k), g = !1);
66
66
  }
67
67
  }
68
- return y;
68
+ return v;
69
69
  } else {
70
- const v = o({ min: 0, max: b - 1 });
71
- return h[v][m];
70
+ const y = o({ min: 0, max: b - 1 });
71
+ return h[y][m];
72
72
  }
73
73
  }
74
74
  function E() {
75
75
  Object.keys(t).forEach((h) => {
76
- const l = t[h];
77
- if (l.mock && typeof l.mock == "object") {
78
- const f = l.mock;
79
- switch (f.dic = typeof l.dicData == "string" ? i[l.dicData] : l.dicData || [], f.props = l.props || {}, f.columnType = l.type, f.multiple = l.multiple, f.type) {
76
+ const n = t[h];
77
+ if (n.mock && typeof n.mock == "object") {
78
+ const f = n.mock;
79
+ switch (f.dic = typeof n.dicData == "string" ? i[n.dicData] : n.dicData || [], f.props = n.props || {}, f.columnType = n.type, f.multiple = n.multiple, f.type) {
80
80
  case "name":
81
- n[l.prop] = a(f);
81
+ l[n.prop] = a(f);
82
82
  break;
83
83
  case "number":
84
- n[l.prop] = o(f);
84
+ l[n.prop] = o(f);
85
85
  break;
86
86
  case "datetime":
87
- n[l.prop] = F(f);
87
+ l[n.prop] = F(f);
88
88
  break;
89
89
  case "word":
90
- n[l.prop] = C(f);
90
+ l[n.prop] = C(f);
91
91
  break;
92
92
  case "url":
93
- n[l.prop] = d(f);
93
+ l[n.prop] = c(f);
94
94
  break;
95
95
  case "county":
96
- n[l.prop] = T();
96
+ l[n.prop] = T();
97
97
  break;
98
98
  case "dic":
99
- n[l.prop] = w(f);
99
+ l[n.prop] = w(f);
100
100
  break;
101
101
  }
102
102
  } else
103
- l.mock instanceof Function && (n[l.prop] = l.mock(s));
103
+ n.mock instanceof Function && (l[n.prop] = n.mock(s));
104
104
  });
105
105
  }
106
- return E(), n;
106
+ return E(), l;
107
107
  };
108
108
  var Q = function() {
109
109
  var t = this, i = t.$createElement, s = t._self._c || i;
@@ -153,7 +153,46 @@ var Q = function() {
153
153
  on: {
154
154
  change: t.handleGroupClick
155
155
  },
156
- scopedSlots: t._u([t.getSlotName(r, "H", t.$scopedSlots) ? {
156
+ scopedSlots: t._u([{
157
+ key: "tabs",
158
+ fn: function() {
159
+ return [t.isTabs && p === 1 ? s("ElTabs", {
160
+ staticClass: "avue-form__tabs",
161
+ attrs: {
162
+ type: t.tabsType
163
+ },
164
+ on: {
165
+ "tab-click": t.handleTabClick
166
+ },
167
+ model: {
168
+ value: t.activeName,
169
+ callback: function(e) {
170
+ t.activeName = e;
171
+ },
172
+ expression: "activeName"
173
+ }
174
+ }, [t._l(t.columnOption, function(e, l) {
175
+ return [t.vaildDisplay(e) && l !== 0 ? s("ElTabPane", {
176
+ key: l,
177
+ attrs: {
178
+ name: `${l}`
179
+ },
180
+ scopedSlots: t._u([{
181
+ key: "label",
182
+ fn: function() {
183
+ return [s("span", [t.getSlotName(e, "H", t.$scopedSlots) ? t._t(t.getSlotName(e, "H"), null, {
184
+ column: t.column
185
+ }) : [s("i", {
186
+ class: e.icon
187
+ }, [t._v(" ")]), t._v(" " + t._s(e.label) + " ")]], 2)];
188
+ },
189
+ proxy: !0
190
+ }], null, !0)
191
+ }) : t._e()];
192
+ })], 2) : t._e()];
193
+ },
194
+ proxy: !0
195
+ }, t.getSlotName(r, "H", t.$scopedSlots) ? {
157
196
  key: "header",
158
197
  fn: function() {
159
198
  return [t._t(t.getSlotName(r, "H"), null, {
@@ -162,40 +201,7 @@ var Q = function() {
162
201
  },
163
202
  proxy: !0
164
203
  } : null], null, !0)
165
- }, [t.isTabs && p === 1 ? s("ElTabs", {
166
- staticClass: "avue-form__tabs",
167
- attrs: {
168
- slot: "tabs",
169
- type: t.tabsType
170
- },
171
- on: {
172
- "tab-click": t.handleTabClick
173
- },
174
- slot: "tabs",
175
- model: {
176
- value: t.activeName,
177
- callback: function(e) {
178
- t.activeName = e;
179
- },
180
- expression: "activeName"
181
- }
182
- }, [t._l(t.columnOption, function(e, n) {
183
- return [t.vaildDisplay(e) && n !== 0 ? s("ElTabPane", {
184
- key: n,
185
- attrs: {
186
- name: `${n}`
187
- }
188
- }, [s("span", {
189
- attrs: {
190
- slot: "label"
191
- },
192
- slot: "label"
193
- }, [t.getSlotName(e, "H", t.$scopedSlots) ? t._t(t.getSlotName(e, "H"), null, {
194
- column: t.column
195
- }) : [s("i", {
196
- class: e.icon
197
- }, [t._v(" ")]), t._v(" " + t._s(e.label) + " ")]], 2)]) : t._e()];
198
- })], 2) : t._e(), s("div", {
204
+ }, [s("div", {
199
205
  directives: [{
200
206
  name: "show",
201
207
  rawName: "v-show",
@@ -205,9 +211,9 @@ var Q = function() {
205
211
  class: ["avue-form__group", {
206
212
  "avue-form__group--flex": r.flex === !1
207
213
  }]
208
- }, [t._l(r.column, function(e, n) {
214
+ }, [t._l(r.column, function(e, l) {
209
215
  return [t.vaildDisplay(e) ? s("ElCol", {
210
- key: n,
216
+ key: l,
211
217
  class: ["avue-form__row", {
212
218
  "avue--detail avue--detail__column": t.vaildDetail(e)
213
219
  }, e.className],
@@ -254,16 +260,19 @@ var Q = function() {
254
260
  attrs: {
255
261
  effect: "dark",
256
262
  placement: e.labelTipPlacement || "top-start"
257
- }
258
- }, [s("div", {
259
- attrs: {
260
- slot: "content"
261
- },
262
- domProps: {
263
- innerHTML: t._s(e.labelTip)
264
263
  },
265
- slot: "content"
266
- }), s("i", {
264
+ scopedSlots: t._u([{
265
+ key: "content",
266
+ fn: function() {
267
+ return [s("div", {
268
+ domProps: {
269
+ innerHTML: t._s(e.labelTip)
270
+ }
271
+ })];
272
+ },
273
+ proxy: !0
274
+ }], null, !0)
275
+ }, [s("i", {
267
276
  staticClass: "el-icon-info"
268
277
  })]), s("span", [t._v(" " + t._s(e.label) + t._s(t.labelSuffix))])];
269
278
  },
@@ -339,7 +348,7 @@ var Q = function() {
339
348
  expression: "form[column.prop]"
340
349
  }
341
350
  }, "FormTemp", t.uploadFun(e), !1))], 2)], 1)], 1) : t._e(), t.vaildDisplay(e) && e.row && e.span !== 24 && e.count ? s("div", {
342
- key: `line${n}`,
351
+ key: `line${l}`,
343
352
  staticClass: "avue-form__line",
344
353
  style: {
345
354
  width: `${e.count / 24 * 100}%`
@@ -352,7 +361,7 @@ var Q = function() {
352
361
  return [t._t("menuForm", null, null, e)];
353
362
  }
354
363
  }], null, !0)
355
- }) : t._e()], 2)], 1);
364
+ }) : t._e()], 2)]);
356
365
  }), !t.isDetail && t.isMenu ? s("FyFormMenu", {
357
366
  scopedSlots: t._u([{
358
367
  key: "menuForm",
@@ -555,7 +564,7 @@ const Y = {
555
564
  return t.span || this.parentOption.span || this.itemSpanDefault;
556
565
  },
557
566
  isGroupShow(t, i) {
558
- return this.isTabs ? i == this.activeName || i == 0 : !0;
567
+ return this.isTabs ? `${i}` === this.activeName || i === 0 : !0;
559
568
  },
560
569
  // 初始化表单
561
570
  dataFormat() {
@@ -574,23 +583,23 @@ const Y = {
574
583
  const p = [];
575
584
  if (s) {
576
585
  const e = this.$watch(`form.${i}`, (a, o) => {
577
- a != o && V(this.form, s, a);
578
- }), n = this.$watch(`form.${s}`, (a, o) => {
579
- a != o && this.$set(this.form, i, a);
586
+ a !== o && V(this.form, s, a);
587
+ }), l = this.$watch(`form.${s}`, (a, o) => {
588
+ a !== o && this.$set(this.form, i, a);
580
589
  });
581
- p.push(e), p.push(n), this.$set(this.form, i, z(this.form, s));
590
+ p.push(e), p.push(l), this.$set(this.form, i, z(this.form, s));
582
591
  }
583
592
  if (r) {
584
593
  const e = () => {
585
594
  const a = r(this.form[t.prop], this.form) || {};
586
595
  Object.keys(a).forEach((o) => {
587
- const d = Object.assign(this.objectOption[o] || {}, a[o]);
588
- this.$set(this.objectOption, o, d), a[o].dicData && (this.DIC[o] = a[o].dicData);
596
+ const c = Object.assign(this.objectOption[o] || {}, a[o]);
597
+ this.$set(this.objectOption, o, c), a[o].dicData && (this.DIC[o] = a[o].dicData);
589
598
  });
590
- }, n = this.$watch(`form.${i}`, () => {
599
+ }, l = this.$watch(`form.${i}`, () => {
591
600
  e();
592
601
  });
593
- p.push(n), e();
602
+ p.push(l), e();
594
603
  }
595
604
  this.formBind[i] = p;
596
605
  }
@@ -605,10 +614,12 @@ const Y = {
605
614
  this.$emit("input", this.form), this.$emit("change", this.form);
606
615
  },
607
616
  setLabel() {
608
- this.tableOption.filterNull === !0 && (this.form = $(this.form, [""], !1)), this.tableOption.filterDic == !0 ? this.form = $(this.form, ["$"], !1) : this.propOption.forEach((t) => {
609
- let i;
610
- const s = this.DIC[t.prop];
611
- u(s) || (i = N(this.form, t, this.tableOption, s), i ? this.$set(this.form, `$${t.prop}`, i) : this.$delete(this.form, `$${t.prop}`));
617
+ this.tableOption.filterNull === !0 && (this.form = $(this.form, [""], !1)), this.tableOption.filterDic === !0 ? this.form = $(this.form, ["$"], !1) : this.propOption.forEach((t) => {
618
+ const i = this.DIC[t.prop];
619
+ if (u(i))
620
+ return;
621
+ const s = N(this.form, t, this.tableOption, i);
622
+ s ? this.$set(this.form, `$${t.prop}`, s) : this.$delete(this.form, `$${t.prop}`);
612
623
  });
613
624
  },
614
625
  handleGroupClick(t) {
@@ -635,17 +646,17 @@ const Y = {
635
646
  this.$nextTick(() => {
636
647
  const s = i.cascader, r = s.join(",");
637
648
  s.forEach((p) => {
638
- const e = p, n = this.form[i.prop], a = this.findObject(t, e);
649
+ const e = p, l = this.form[i.prop], a = this.findObject(t, e);
639
650
  u(a) || (this.formList.includes(r) && s.forEach((o) => {
640
651
  this.form[o] = "", this.$set(this.DIC, o, []);
641
- }), !(u(s) || u(n) || u(a)) && U({
652
+ }), !(u(s) || u(l) || u(a)) && U({
642
653
  column: a,
643
- value: n,
654
+ value: l,
644
655
  form: this.form
645
656
  }).then((o) => {
646
657
  this.formList.includes(r) || this.formList.push(r);
647
- const d = o || [];
648
- this.$set(this.DIC, e, d), !u(d) && !u(d) && !u(a.cascaderIndex) && u(this.form[e]) && (this.form[e] = d[a.cascaderIndex][(a.props || {}).value || I.value]);
658
+ const c = o || [];
659
+ this.$set(this.DIC, e, c), !u(c) && !u(c) && !u(a.cascaderIndex) && u(this.form[e]) && (this.form[e] = c[a.cascaderIndex][(a.props || {}).value || I.value]);
649
660
  }));
650
661
  });
651
662
  });
@@ -701,7 +712,7 @@ const Y = {
701
712
  return u(t.display) ? this.isAdd ? i = "addDisplay" : this.isEdit ? i = "editDisplay" : this.isView && (i = "viewDisplay") : i = "display", i ? M(t[i], !0) : !0;
702
713
  },
703
714
  clearValidate(t) {
704
- return k(this, null, function* () {
715
+ return D(this, null, function* () {
705
716
  var i;
706
717
  (i = this.$refs.form) == null || i.clearValidate(t);
707
718
  });
@@ -716,14 +727,14 @@ const Y = {
716
727
  validate(t) {
717
728
  this.$refs.form.validate((i, s) => {
718
729
  const r = [], p = [], e = {};
719
- this.dynamicOption.forEach((n) => {
720
- const a = n.children.type === "form";
721
- p.push(n.prop), a ? u(this.$refs[n.prop][0].$refs.temp.$refs.main) || this.$refs[n.prop][0].$refs.temp.$refs.main.forEach((o) => {
730
+ this.dynamicOption.forEach((l) => {
731
+ const a = l.children.type === "form";
732
+ p.push(l.prop), a ? u(this.$refs[l.prop][0].$refs.temp.$refs.main) || this.$refs[l.prop][0].$refs.temp.$refs.main.forEach((o) => {
722
733
  r.push(o.validateCellForm());
723
- }) : r.push(this.$refs[n.prop][0].$refs.temp.$refs.main.validateCellForm());
724
- }), Promise.all(r).then((n) => {
725
- n.forEach((o, d) => {
726
- u(o) || (e[p[d]] = o);
734
+ }) : r.push(this.$refs[l.prop][0].$refs.temp.$refs.main.validateCellForm());
735
+ }), Promise.all(r).then((l) => {
736
+ l.forEach((o, c) => {
737
+ u(o) || (e[p[c]] = o);
727
738
  });
728
739
  const a = Object.assign(e, s);
729
740
  u(a) ? (this.show(), t(!0, this.hide)) : t(!1, this.hide, a);