@web-utils/component 2.8.1 → 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.
- package/base.css +1 -1
- package/card/index.mjs +33 -37
- package/chat/index.mjs +132 -123
- package/chunks/{dataformat.25e22176.mjs → dataformat.ab62230f.mjs} +1 -1
- package/chunks/{detail.6e53ede8.mjs → detail.6e46de33.mjs} +1 -1
- package/chunks/dic.7f13b573.mjs +130 -0
- package/chunks/{event.a018cb06.mjs → event.1ac32f1d.mjs} +2 -2
- package/chunks/{init.f04c7036.mjs → init.47ce5ed9.mjs} +2 -2
- package/chunks/util.505913d9.mjs +266 -0
- package/column/index.mjs +2 -2
- package/column-default/index.mjs +1 -1
- package/column-dynamic/index.mjs +1 -1
- package/column-menu/index.mjs +81 -79
- package/column-slot/index.mjs +8 -7
- package/comment/index.mjs +6 -10
- package/data-pay/index.mjs +16 -13
- package/data-table-picker/index.mjs +22 -22
- package/dialog-excel/index.mjs +8 -8
- package/dialog-filter/index.mjs +4 -2
- package/dialog-form/index.mjs +6 -6
- package/editable-tree/index.mjs +5 -5
- package/flow/index.mjs +11 -11
- package/flow/style.css +1 -1
- package/flow-node/index.mjs +2 -2
- package/form-button/index.mjs +16 -38
- package/form-group/index.mjs +28 -33
- package/form-temp/index.mjs +15 -27
- package/fy-array/index.mjs +44 -42
- package/fy-cascader/index.mjs +1 -1
- package/fy-checkbox/index.mjs +2 -1
- package/fy-code/index.mjs +1 -1
- package/fy-curd/index.mjs +29 -31
- package/fy-date/index.mjs +1 -1
- package/fy-dialog-form/index.mjs +5 -11
- package/fy-draggable/index.mjs +3 -3
- package/fy-dynamic/index.mjs +3 -3
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +133 -122
- package/fy-form-design/index.mjs +2595 -2610
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +10 -15
- package/fy-input-color/index.mjs +1 -1
- package/fy-input-icon/index.mjs +21 -16
- package/fy-input-map/index.mjs +22 -19
- package/fy-input-number/index.mjs +1 -1
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.mjs +5 -6
- package/fy-radio/index.mjs +3 -1
- package/fy-rate/index.mjs +2 -1
- package/fy-select/index.mjs +29 -28
- package/fy-slider/index.mjs +2 -2
- package/fy-switch/index.mjs +2 -1
- package/fy-tabs/index.mjs +19 -17
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +8 -6
- package/fy-u-editor/index.mjs +10 -14
- package/fy-upload/index.mjs +85 -84
- package/header-menu/index.mjs +1 -1
- package/header-search/index.mjs +7 -5
- package/image-cropper/index.mjs +1 -1
- package/image-preview/index.mjs +1 -1
- package/index.cjs +39 -39
- package/index.css +1 -1
- package/index.mjs +16577 -16591
- package/license/index.mjs +1 -1
- package/login/index.mjs +1 -1
- package/monaco-editor/index.mjs +3 -3
- package/package.json +1 -1
- package/process-designer/index.mjs +10 -2
- package/queue/index.mjs +3 -8
- package/queue/style.css +1 -0
- package/record-video/index.mjs +1 -1
- package/search/index.mjs +2 -2
- package/search-popover/index.mjs +25 -24
- package/sign/index.mjs +17 -18
- package/sign/style.css +1 -1
- package/table-page/index.mjs +21 -23
- package/text-ellipsis/index.mjs +1 -1
- package/verify/index.mjs +1 -1
- package/web-types.json +52 -166
- package/chunks/dic.e8280157.mjs +0 -130
- package/chunks/util.17330567.mjs +0 -266
package/fy-form/index.mjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var
|
|
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 (
|
|
6
|
-
p(
|
|
5
|
+
} catch (c) {
|
|
6
|
+
p(c);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, l = (o) => {
|
|
9
9
|
try {
|
|
10
10
|
a(s.throw(o));
|
|
11
|
-
} catch (
|
|
12
|
-
p(
|
|
11
|
+
} catch (c) {
|
|
12
|
+
p(c);
|
|
13
13
|
}
|
|
14
|
-
}, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(e,
|
|
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.
|
|
18
|
-
import { i as j } from "../chunks/init.
|
|
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.
|
|
20
|
-
import { b as B, c as W, g as R, a as G, f as H } from "../chunks/dataformat.
|
|
21
|
-
import { s as U } from "../chunks/dic.
|
|
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,
|
|
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:
|
|
36
|
+
function o({ max: h, min: n, precision: f }) {
|
|
37
37
|
if (f) {
|
|
38
|
-
const
|
|
39
|
-
return Number(
|
|
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(
|
|
41
|
+
return e.integer(n, h);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
let
|
|
45
|
-
const
|
|
46
|
-
return h === !1 ?
|
|
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:
|
|
49
|
-
return
|
|
48
|
+
function F({ format: h, now: n }) {
|
|
49
|
+
return n ? e.now(h) : e.datetime(h);
|
|
50
50
|
}
|
|
51
|
-
function C({ min: h, max:
|
|
52
|
-
return e.csentence(h,
|
|
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:
|
|
58
|
-
const m =
|
|
59
|
-
if (["checkbox"].includes(f) ||
|
|
60
|
-
const
|
|
61
|
-
for (let O = 0; 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 }),
|
|
65
|
-
|
|
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
|
|
68
|
+
return v;
|
|
69
69
|
} else {
|
|
70
|
-
const
|
|
71
|
-
return h[
|
|
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
|
|
77
|
-
if (
|
|
78
|
-
const f =
|
|
79
|
-
switch (f.dic = typeof
|
|
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
|
|
81
|
+
l[n.prop] = a(f);
|
|
82
82
|
break;
|
|
83
83
|
case "number":
|
|
84
|
-
n
|
|
84
|
+
l[n.prop] = o(f);
|
|
85
85
|
break;
|
|
86
86
|
case "datetime":
|
|
87
|
-
n
|
|
87
|
+
l[n.prop] = F(f);
|
|
88
88
|
break;
|
|
89
89
|
case "word":
|
|
90
|
-
n
|
|
90
|
+
l[n.prop] = C(f);
|
|
91
91
|
break;
|
|
92
92
|
case "url":
|
|
93
|
-
n
|
|
93
|
+
l[n.prop] = c(f);
|
|
94
94
|
break;
|
|
95
95
|
case "county":
|
|
96
|
-
n
|
|
96
|
+
l[n.prop] = T();
|
|
97
97
|
break;
|
|
98
98
|
case "dic":
|
|
99
|
-
n
|
|
99
|
+
l[n.prop] = w(f);
|
|
100
100
|
break;
|
|
101
101
|
}
|
|
102
102
|
} else
|
|
103
|
-
|
|
103
|
+
n.mock instanceof Function && (l[n.prop] = n.mock(s));
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
return E(),
|
|
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([
|
|
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
|
-
}, [
|
|
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,
|
|
214
|
+
}, [t._l(r.column, function(e, l) {
|
|
209
215
|
return [t.vaildDisplay(e) ? s("ElCol", {
|
|
210
|
-
key:
|
|
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
|
-
|
|
266
|
-
|
|
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${
|
|
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)]
|
|
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
|
|
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
|
|
578
|
-
}),
|
|
579
|
-
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(
|
|
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
|
|
588
|
-
this.$set(this.objectOption, o,
|
|
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
|
-
},
|
|
599
|
+
}, l = this.$watch(`form.${i}`, () => {
|
|
591
600
|
e();
|
|
592
601
|
});
|
|
593
|
-
p.push(
|
|
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
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
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,
|
|
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(
|
|
652
|
+
}), !(u(s) || u(l) || u(a)) && U({
|
|
642
653
|
column: a,
|
|
643
|
-
value:
|
|
654
|
+
value: l,
|
|
644
655
|
form: this.form
|
|
645
656
|
}).then((o) => {
|
|
646
657
|
this.formList.includes(r) || this.formList.push(r);
|
|
647
|
-
const
|
|
648
|
-
this.$set(this.DIC, e,
|
|
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
|
|
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((
|
|
720
|
-
const a =
|
|
721
|
-
p.push(
|
|
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[
|
|
724
|
-
}), Promise.all(r).then((
|
|
725
|
-
|
|
726
|
-
u(o) || (e[p[
|
|
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);
|