@harbor-design/proform 1.4.13 → 1.4.15
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/dist/index.js +78 -78
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var l = (r, e, t) => (
|
|
4
|
-
import { ref as H, readonly as Ee, nextTick as S, isRef as T, watch as w, isReactive as z, watchEffect as G, toRaw as $, reactive as Y, createVNode as m, mergeProps as q, withDirectives as
|
|
5
|
-
var
|
|
6
|
-
function
|
|
7
|
-
var e =
|
|
1
|
+
var Ge = Object.defineProperty;
|
|
2
|
+
var Be = (r, e, t) => e in r ? Ge(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
|
+
var l = (r, e, t) => (Be(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import { ref as H, readonly as Ee, nextTick as S, isRef as T, watch as w, isReactive as z, watchEffect as G, toRaw as $, reactive as Y, createVNode as m, mergeProps as q, withDirectives as Ke, vShow as We, createTextVNode as Xe, isVNode as Ye, defineComponent as Ze } from "vue";
|
|
5
|
+
var Je = typeof global == "object" && global && global.Object === Object && global, Qe = typeof self == "object" && self && self.Object === Object && self, ee = Je || Qe || Function("return this")(), M = ee.Symbol, Re = Object.prototype, Ae = Re.hasOwnProperty, ke = Re.toString, U = M ? M.toStringTag : void 0;
|
|
6
|
+
function et(r) {
|
|
7
|
+
var e = Ae.call(r, U), t = r[U];
|
|
8
8
|
try {
|
|
9
9
|
r[U] = void 0;
|
|
10
10
|
var i = !0;
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
|
-
var s =
|
|
13
|
+
var s = ke.call(r);
|
|
14
14
|
return i && (e ? r[U] = t : delete r[U]), s;
|
|
15
15
|
}
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
return
|
|
16
|
+
var tt = Object.prototype, rt = tt.toString;
|
|
17
|
+
function it(r) {
|
|
18
|
+
return rt.call(r);
|
|
19
19
|
}
|
|
20
|
-
var
|
|
20
|
+
var st = "[object Null]", nt = "[object Undefined]", Oe = M ? M.toStringTag : void 0;
|
|
21
21
|
function $e(r) {
|
|
22
|
-
return r == null ? r === void 0 ?
|
|
22
|
+
return r == null ? r === void 0 ? nt : st : Oe && Oe in Object(r) ? et(r) : it(r);
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function ot(r) {
|
|
25
25
|
return r != null && typeof r == "object";
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var at = "[object Symbol]";
|
|
28
28
|
function te(r) {
|
|
29
|
-
return typeof r == "symbol" ||
|
|
29
|
+
return typeof r == "symbol" || ot(r) && $e(r) == at;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function lt(r, e) {
|
|
32
32
|
for (var t = -1, i = r == null ? 0 : r.length, s = Array(i); ++t < i; )
|
|
33
33
|
s[t] = e(r[t], t, r);
|
|
34
34
|
return s;
|
|
35
35
|
}
|
|
36
|
-
var re = Array.isArray,
|
|
36
|
+
var re = Array.isArray, ut = 1 / 0, we = M ? M.prototype : void 0, Fe = we ? we.toString : void 0;
|
|
37
37
|
function Me(r) {
|
|
38
38
|
if (typeof r == "string")
|
|
39
39
|
return r;
|
|
40
40
|
if (re(r))
|
|
41
|
-
return
|
|
41
|
+
return lt(r, Me) + "";
|
|
42
42
|
if (te(r))
|
|
43
43
|
return Fe ? Fe.call(r) : "";
|
|
44
44
|
var e = r + "";
|
|
45
|
-
return e == "0" && 1 / r == -
|
|
45
|
+
return e == "0" && 1 / r == -ut ? "-0" : e;
|
|
46
46
|
}
|
|
47
47
|
function B(r) {
|
|
48
48
|
var e = typeof r;
|
|
49
49
|
return r != null && (e == "object" || e == "function");
|
|
50
50
|
}
|
|
51
|
-
var
|
|
52
|
-
function
|
|
51
|
+
var ft = "[object AsyncFunction]", ct = "[object Function]", dt = "[object GeneratorFunction]", ht = "[object Proxy]";
|
|
52
|
+
function Ve(r) {
|
|
53
53
|
if (!B(r))
|
|
54
54
|
return !1;
|
|
55
55
|
var e = $e(r);
|
|
56
|
-
return e ==
|
|
56
|
+
return e == ct || e == dt || e == ft || e == ht;
|
|
57
57
|
}
|
|
58
58
|
var Z = ee["__core-js_shared__"], je = function() {
|
|
59
59
|
var r = /[^.]+$/.exec(Z && Z.keys && Z.keys.IE_PROTO || "");
|
|
@@ -63,7 +63,7 @@ function pt(r) {
|
|
|
63
63
|
return !!je && je in r;
|
|
64
64
|
}
|
|
65
65
|
var mt = Function.prototype, gt = mt.toString;
|
|
66
|
-
function
|
|
66
|
+
function bt(r) {
|
|
67
67
|
if (r != null) {
|
|
68
68
|
try {
|
|
69
69
|
return gt.call(r);
|
|
@@ -76,14 +76,14 @@ function vt(r) {
|
|
|
76
76
|
}
|
|
77
77
|
return "";
|
|
78
78
|
}
|
|
79
|
-
var
|
|
80
|
-
"^" + Ct.call(It).replace(
|
|
79
|
+
var vt = /[\\^$.*+?()[\]{}|]/g, yt = /^\[object .+?Constructor\]$/, _t = Function.prototype, Pt = Object.prototype, Ct = _t.toString, It = Pt.hasOwnProperty, St = RegExp(
|
|
80
|
+
"^" + Ct.call(It).replace(vt, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
81
81
|
);
|
|
82
82
|
function Et(r) {
|
|
83
83
|
if (!B(r) || pt(r))
|
|
84
84
|
return !1;
|
|
85
|
-
var e =
|
|
86
|
-
return e.test(
|
|
85
|
+
var e = Ve(r) ? St : yt;
|
|
86
|
+
return e.test(bt(r));
|
|
87
87
|
}
|
|
88
88
|
function Ot(r, e) {
|
|
89
89
|
return r == null ? void 0 : r[e];
|
|
@@ -111,13 +111,13 @@ function xt(r, e, t) {
|
|
|
111
111
|
writable: !0
|
|
112
112
|
}) : r[e] = t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Ne(r, e) {
|
|
115
115
|
return r === e || r !== r && e !== e;
|
|
116
116
|
}
|
|
117
117
|
var Rt = Object.prototype, $t = Rt.hasOwnProperty;
|
|
118
118
|
function Mt(r, e, t) {
|
|
119
119
|
var i = r[e];
|
|
120
|
-
(!($t.call(r, e) &&
|
|
120
|
+
(!($t.call(r, e) && Ne(i, t)) || t === void 0 && !(e in r)) && xt(r, e, t);
|
|
121
121
|
}
|
|
122
122
|
var Vt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Nt = /^\w*$/;
|
|
123
123
|
function Ut(r, e) {
|
|
@@ -170,7 +170,7 @@ function Yt() {
|
|
|
170
170
|
}
|
|
171
171
|
function K(r, e) {
|
|
172
172
|
for (var t = r.length; t--; )
|
|
173
|
-
if (
|
|
173
|
+
if (Ne(r[t][0], e))
|
|
174
174
|
return t;
|
|
175
175
|
return -1;
|
|
176
176
|
}
|
|
@@ -277,32 +277,32 @@ var cr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
|
|
|
277
277
|
function pr(r) {
|
|
278
278
|
return r == null ? "" : Me(r);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Ue(r, e) {
|
|
281
281
|
return re(r) ? r : Ut(r, e) ? [r] : hr(pr(r));
|
|
282
282
|
}
|
|
283
283
|
var mr = 1 / 0;
|
|
284
|
-
function
|
|
284
|
+
function qe(r) {
|
|
285
285
|
if (typeof r == "string" || te(r))
|
|
286
286
|
return r;
|
|
287
287
|
var e = r + "";
|
|
288
288
|
return e == "0" && 1 / r == -mr ? "-0" : e;
|
|
289
289
|
}
|
|
290
290
|
function gr(r, e) {
|
|
291
|
-
e =
|
|
291
|
+
e = Ue(e, r);
|
|
292
292
|
for (var t = 0, i = e.length; r != null && t < i; )
|
|
293
|
-
r = r[
|
|
293
|
+
r = r[qe(e[t++])];
|
|
294
294
|
return t && t == i ? r : void 0;
|
|
295
295
|
}
|
|
296
296
|
function D(r, e, t) {
|
|
297
297
|
var i = r == null ? void 0 : gr(r, e);
|
|
298
298
|
return i === void 0 ? t : i;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function br(r, e, t, i) {
|
|
301
301
|
if (!B(r))
|
|
302
302
|
return r;
|
|
303
|
-
e =
|
|
303
|
+
e = Ue(e, r);
|
|
304
304
|
for (var s = -1, n = e.length, a = n - 1, u = r; u != null && ++s < n; ) {
|
|
305
|
-
var f =
|
|
305
|
+
var f = qe(e[s]), c = t;
|
|
306
306
|
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
307
307
|
return r;
|
|
308
308
|
if (s != a) {
|
|
@@ -314,7 +314,7 @@ function vr(r, e, t, i) {
|
|
|
314
314
|
return r;
|
|
315
315
|
}
|
|
316
316
|
function _(r, e, t) {
|
|
317
|
-
return r == null ? r :
|
|
317
|
+
return r == null ? r : br(r, e, t);
|
|
318
318
|
}
|
|
319
319
|
class o {
|
|
320
320
|
static typeChecker(e) {
|
|
@@ -391,13 +391,13 @@ class o {
|
|
|
391
391
|
return !!e.__proform_raw_object;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function v(r, ...e) {
|
|
395
395
|
return e.forEach((t) => {
|
|
396
396
|
if (Array.isArray(t))
|
|
397
397
|
r = [...t];
|
|
398
398
|
else
|
|
399
399
|
for (const i in t)
|
|
400
|
-
t.hasOwnProperty(i) && t[i] !== void 0 && (typeof t[i] == "object" && t[i] !== null && !(t[i] instanceof Date) && !(t[i] instanceof RegExp) ? Array.isArray(t[i]) ? r[i] = [...t[i]] : r[i] =
|
|
400
|
+
t.hasOwnProperty(i) && t[i] !== void 0 && (typeof t[i] == "object" && t[i] !== null && !(t[i] instanceof Date) && !(t[i] instanceof RegExp) ? Array.isArray(t[i]) ? r[i] = [...t[i]] : r[i] = v(r[i] || {}, t[i]) : r[i] = t[i]);
|
|
401
401
|
}), r;
|
|
402
402
|
}
|
|
403
403
|
function C(r) {
|
|
@@ -441,7 +441,7 @@ function C(r) {
|
|
|
441
441
|
function Q(r, e) {
|
|
442
442
|
return r.replace(/undefined/g, e);
|
|
443
443
|
}
|
|
444
|
-
class
|
|
444
|
+
class vr {
|
|
445
445
|
constructor(e) {
|
|
446
446
|
l(this, "runtimeCore");
|
|
447
447
|
l(this, "readonlyReactiveModel", H({}));
|
|
@@ -469,7 +469,7 @@ class br {
|
|
|
469
469
|
T(e) ? w(
|
|
470
470
|
() => e.value,
|
|
471
471
|
() => {
|
|
472
|
-
|
|
472
|
+
v(this.runtimeCore.model.value, e.value);
|
|
473
473
|
},
|
|
474
474
|
{
|
|
475
475
|
deep: !0,
|
|
@@ -478,13 +478,13 @@ class br {
|
|
|
478
478
|
) : z(e) ? w(
|
|
479
479
|
() => e,
|
|
480
480
|
() => {
|
|
481
|
-
|
|
481
|
+
v(this.runtimeCore.model.value, e);
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
484
|
deep: !0,
|
|
485
485
|
immediate: !0
|
|
486
486
|
}
|
|
487
|
-
) :
|
|
487
|
+
) : v(this.runtimeCore.model.value, e);
|
|
488
488
|
},
|
|
489
489
|
{
|
|
490
490
|
lazy: !1
|
|
@@ -642,11 +642,11 @@ class yr {
|
|
|
642
642
|
const f = u.index, c = u.key, h = u.keyIndex;
|
|
643
643
|
if (o.isUndefined(u.stable) || o.isNull(u.stable))
|
|
644
644
|
return;
|
|
645
|
-
const p = s.parseStable(u.stable),
|
|
645
|
+
const p = s.parseStable(u.stable), b = i == null ? void 0 : i.index, E = i == null ? void 0 : i.key;
|
|
646
646
|
let y = p;
|
|
647
647
|
if (o.isProcessInprogress(y) || (n[h] = !0), i) {
|
|
648
|
-
const g = s.processedSchemas.value[
|
|
649
|
-
g && o.isObject(g) && c !== "component" && (y =
|
|
648
|
+
const g = s.processedSchemas.value[b][E][f][c];
|
|
649
|
+
g && o.isObject(g) && c !== "component" && (y = v(g, y)), s.processedSchemas.value[b][E][f][c] = y, s.stableUpdater(
|
|
650
650
|
n,
|
|
651
651
|
i,
|
|
652
652
|
t,
|
|
@@ -655,7 +655,7 @@ class yr {
|
|
|
655
655
|
);
|
|
656
656
|
} else {
|
|
657
657
|
const g = s.processedSchemas.value[f][c];
|
|
658
|
-
g && o.isObject(g) && c !== "component" && (y =
|
|
658
|
+
g && o.isObject(g) && c !== "component" && (y = v(g, y)), s.processedSchemas.value[f][c] = y, s.stableUpdater(
|
|
659
659
|
n,
|
|
660
660
|
i,
|
|
661
661
|
t,
|
|
@@ -715,8 +715,8 @@ class yr {
|
|
|
715
715
|
this.defaultValueInprogressMap.set(t[s], h), !o.isProcessInprogress(h) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
716
716
|
this.defaultValueInprogressMap.values()
|
|
717
717
|
).every((p) => {
|
|
718
|
-
var
|
|
719
|
-
return !((
|
|
718
|
+
var b;
|
|
719
|
+
return !((b = p == null ? void 0 : p.includes) != null && b.call(p, "undefined"));
|
|
720
720
|
}) ? (f(h), this.defaultValueEffect.clearEffects(), S(() => {
|
|
721
721
|
c();
|
|
722
722
|
})) : f(h);
|
|
@@ -731,8 +731,8 @@ class yr {
|
|
|
731
731
|
this.defaultValueInprogressMap.set(t[s], h), !o.isProcessInprogress(h) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
732
732
|
this.defaultValueInprogressMap.values()
|
|
733
733
|
).every((p) => {
|
|
734
|
-
var
|
|
735
|
-
return !((
|
|
734
|
+
var b;
|
|
735
|
+
return !((b = p == null ? void 0 : p.includes) != null && b.call(p, "undefined"));
|
|
736
736
|
}) ? (f(h), this.defaultValueEffect.clearEffects(), S(() => {
|
|
737
737
|
c();
|
|
738
738
|
})) : f(h);
|
|
@@ -839,7 +839,7 @@ class yr {
|
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
841
|
setModel(e, t, i) {
|
|
842
|
-
o.isFunction(t) ? _(e, t(), i) :
|
|
842
|
+
o.isFunction(t) ? _(e, t(), i) : v(e, {
|
|
843
843
|
[t]: i
|
|
844
844
|
});
|
|
845
845
|
}
|
|
@@ -916,7 +916,7 @@ class _r {
|
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
function Pr(r) {
|
|
919
|
-
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !
|
|
919
|
+
return typeof r == "function" || Object.prototype.toString.call(r) === "[object Object]" && !Ye(r);
|
|
920
920
|
}
|
|
921
921
|
class Cr {
|
|
922
922
|
constructor(e) {
|
|
@@ -981,51 +981,51 @@ class Cr {
|
|
|
981
981
|
};
|
|
982
982
|
}
|
|
983
983
|
runtimeItemProcessor(e, t, i = this.model.value, s) {
|
|
984
|
-
var oe, ae, le, ue, fe, ce, de, he, pe, me, ge,
|
|
984
|
+
var oe, ae, le, ue, fe, ce, de, he, pe, me, ge, be, ve, ye, _e, Pe, Ce, Ie;
|
|
985
985
|
const n = $(e.component);
|
|
986
986
|
if (!n)
|
|
987
987
|
return;
|
|
988
|
-
(ae = (oe = e.native) == null ? void 0 : oe.props) != null && ae.Form &&
|
|
989
|
-
const a =
|
|
988
|
+
(ae = (oe = e.native) == null ? void 0 : oe.props) != null && ae.Form && v(this.globalNativeFormOverride.props.Form, (ue = (le = e.native) == null ? void 0 : le.props) == null ? void 0 : ue.Form), (ce = (fe = e.native) == null ? void 0 : fe.slots) != null && ce.Form && v(this.globalNativeFormOverride.slots.Form, (he = (de = e.native) == null ? void 0 : de.slots) == null ? void 0 : he.Form);
|
|
989
|
+
const a = v(C((me = (pe = this.native) == null ? void 0 : pe.slots) == null ? void 0 : me.FormItem) ?? {}, (be = (ge = e.native) == null ? void 0 : ge.slots) == null ? void 0 : be.FormItem), u = {
|
|
990
990
|
display: "grid",
|
|
991
991
|
gridColumn: "1 / -1",
|
|
992
992
|
...e.grid
|
|
993
|
-
}, f =
|
|
993
|
+
}, f = v(C((ye = (ve = this.native) == null ? void 0 : ve.props) == null ? void 0 : ye.FormItem) ?? {}, (Pe = (_e = e.native) == null ? void 0 : _e.props) == null ? void 0 : Pe.FormItem), c = this.runtimeAdapter.getRuntimeField({
|
|
994
994
|
schema: e,
|
|
995
995
|
parentSchema: s,
|
|
996
996
|
index: t
|
|
997
|
-
}), h = n.name, p = e.componentProps ?? {},
|
|
997
|
+
}), h = n.name, p = e.componentProps ?? {}, b = I.placeholderPresetByComponentName;
|
|
998
998
|
let E = e.placeholder, y = e.show;
|
|
999
999
|
y === void 0 && (y = !0);
|
|
1000
|
-
let g = e.label ?? "", O;
|
|
1000
|
+
let g = (Ve(e.label) ? e.label() : e.label) ?? "", O;
|
|
1001
1001
|
if (e.runtime ? O = e.runtime : O = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(t) && !o.isObjectEmpty(O) && (g = Q((Ce = O == null ? void 0 : O.customizeListItemLabel) == null ? void 0 : Ce.call(O, e.label ?? "", t + 1), "")), !E) {
|
|
1002
1002
|
let N = "请输入";
|
|
1003
|
-
o.isUndefined(h) ? E = `${N}${g}` : /* @ts-expect-error */
|
|
1004
|
-
|
|
1005
|
-
h.toLowerCase().includes(Se.toLowerCase()) && (N =
|
|
1003
|
+
o.isUndefined(h) ? E = `${N}${g}` : /* @ts-expect-error */ b[h.toLowerCase()] ? (N = // @ts-expect-error
|
|
1004
|
+
b[h.toLowerCase()], E = `${N}${g}`) : (Object.keys(b).forEach((Se) => {
|
|
1005
|
+
h.toLowerCase().includes(Se.toLowerCase()) && (N = b[Se]);
|
|
1006
1006
|
}), E = `${N}${g}`);
|
|
1007
1007
|
}
|
|
1008
|
-
const
|
|
1008
|
+
const Te = this.runtimeAdapter.getRuntimeRequired({
|
|
1009
1009
|
...e,
|
|
1010
1010
|
label: g
|
|
1011
|
-
}),
|
|
1011
|
+
}), ze = x.getItemContainer(this), Le = x.getFormItemContainer(this), He = this, De = e.componentSlots, P = (Ie = d.presets.uiPresets[this.ui]) == null ? void 0 : Ie.display;
|
|
1012
1012
|
let X;
|
|
1013
1013
|
return !o.isUndefined(P == null ? void 0 : P.labelPrefix) && !o.isNull(P == null ? void 0 : P.labelPrefix) ? X = `${g}${P == null ? void 0 : P.labelPrefix}` : X = `${g}:`, m("div", {
|
|
1014
1014
|
style: u
|
|
1015
|
-
}, [m(
|
|
1015
|
+
}, [m(ze, {
|
|
1016
1016
|
show: y
|
|
1017
1017
|
}, {
|
|
1018
1018
|
default() {
|
|
1019
|
-
return y && m(
|
|
1019
|
+
return y && m(Le, q(f, {
|
|
1020
1020
|
label: `${g ? X : ""}`
|
|
1021
|
-
}, c,
|
|
1021
|
+
}, c, Te), {
|
|
1022
1022
|
default() {
|
|
1023
|
-
return
|
|
1023
|
+
return He.runtimeAdapter.formComponentRenderer({
|
|
1024
1024
|
Component: n,
|
|
1025
1025
|
schema: e,
|
|
1026
1026
|
baseModel: i,
|
|
1027
1027
|
placeholder: E,
|
|
1028
|
-
componentSlots:
|
|
1028
|
+
componentSlots: De,
|
|
1029
1029
|
props: p
|
|
1030
1030
|
});
|
|
1031
1031
|
},
|
|
@@ -1082,16 +1082,16 @@ class Cr {
|
|
|
1082
1082
|
} = {}) {
|
|
1083
1083
|
var p;
|
|
1084
1084
|
const h = c ?? m("button", null, null);
|
|
1085
|
-
return
|
|
1085
|
+
return Ke(m(h, {
|
|
1086
1086
|
onClick: () => i.deleteListItem(e, f)
|
|
1087
|
-
}, null), [[
|
|
1087
|
+
}, null), [[We, ((p = i.model.value[e.field]) == null ? void 0 : p.length) > 1]]);
|
|
1088
1088
|
}
|
|
1089
1089
|
}));
|
|
1090
1090
|
},
|
|
1091
1091
|
add({
|
|
1092
1092
|
container: u
|
|
1093
1093
|
} = {}) {
|
|
1094
|
-
const f = u ?? m("button", null, [
|
|
1094
|
+
const f = u ?? m("button", null, [Xe("添加")]);
|
|
1095
1095
|
return m(f, {
|
|
1096
1096
|
onClick: () => i.addListItem(e)
|
|
1097
1097
|
}, null);
|
|
@@ -1108,7 +1108,7 @@ class Cr {
|
|
|
1108
1108
|
gridColumn: "1 / -1",
|
|
1109
1109
|
gridAutoColumns: "1fr",
|
|
1110
1110
|
...this.grid
|
|
1111
|
-
}, t = this, i =
|
|
1111
|
+
}, t = this, i = v(this.globalNativeFormOverride.props.Form, C((f = (u = this.native) == null ? void 0 : u.props) == null ? void 0 : f.Form) ?? {}), s = v(this.globalNativeFormOverride.slots.Form, C((h = (c = this.native) == null ? void 0 : c.slots) == null ? void 0 : h.Form) ?? {}), n = x.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
|
|
1112
1112
|
return m(n, q(i, {
|
|
1113
1113
|
ref: this.formRef
|
|
1114
1114
|
}, {
|
|
@@ -1154,7 +1154,7 @@ const Ir = {
|
|
|
1154
1154
|
getRuntimeRequired(r) {
|
|
1155
1155
|
let e = `${r.label}是必填项`;
|
|
1156
1156
|
if (r.required)
|
|
1157
|
-
if (o.isString(r.required) && (e = r.required), !r.rules)
|
|
1157
|
+
if (o.isString(r.required) && (e = r.required), o.isFunction(r.required) && (e = r.required()), !r.rules)
|
|
1158
1158
|
r.rules = [], r.rules.push({
|
|
1159
1159
|
required: !0,
|
|
1160
1160
|
message: e
|
|
@@ -1401,7 +1401,7 @@ const I = {
|
|
|
1401
1401
|
adapters: {
|
|
1402
1402
|
...Ir
|
|
1403
1403
|
}
|
|
1404
|
-
}, Or = /* @__PURE__ */
|
|
1404
|
+
}, Or = /* @__PURE__ */ Ze({
|
|
1405
1405
|
props: {
|
|
1406
1406
|
setup: {
|
|
1407
1407
|
type: Function,
|
|
@@ -1414,7 +1414,7 @@ const I = {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
});
|
|
1416
1416
|
function wr(r) {
|
|
1417
|
-
const e = new
|
|
1417
|
+
const e = new vr(r);
|
|
1418
1418
|
return [
|
|
1419
1419
|
e.setup.bind(e),
|
|
1420
1420
|
{
|