@harbor-design/proform 1.3.31 → 1.3.32
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 +92 -92
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Te = Object.defineProperty;
|
|
2
2
|
var ze = (t, e, r) => e in t ? Te(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var u = (t, e, r) => (ze(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
import { ref as z, readonly as Pe, nextTick as
|
|
4
|
+
import { ref as z, readonly as Pe, nextTick as S, isRef as q, watch as _, isReactive as U, toRaw as x, reactive as K, createVNode as m, mergeProps as N, withDirectives as Le, vShow as De, createTextVNode as Ge, isVNode as Be, defineComponent as He } from "vue";
|
|
5
5
|
class o {
|
|
6
6
|
static typeChecker(e) {
|
|
7
7
|
return {}.toString.call(e);
|
|
@@ -69,15 +69,15 @@ class o {
|
|
|
69
69
|
return !!e.__proform_raw_object;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function b(t, ...e) {
|
|
73
73
|
return e.forEach((r) => {
|
|
74
74
|
if (Array.isArray(r))
|
|
75
75
|
Array.isArray(t) || (t = []), r.forEach((i, s) => {
|
|
76
|
-
typeof i == "object" && i !== null ? t[s] =
|
|
76
|
+
typeof i == "object" && i !== null ? t[s] = b(Array.isArray(i) ? [] : {}, i) : t[s] = i;
|
|
77
77
|
});
|
|
78
78
|
else
|
|
79
79
|
for (const i in r)
|
|
80
|
-
r.hasOwnProperty(i) && (typeof r[i] == "object" && r[i] !== null ? t[i] =
|
|
80
|
+
r.hasOwnProperty(i) && (typeof r[i] == "object" && r[i] !== null ? t[i] = b(t[i] || {}, r[i]) : t[i] = r[i]);
|
|
81
81
|
}), t;
|
|
82
82
|
}
|
|
83
83
|
function P(t) {
|
|
@@ -142,13 +142,13 @@ class Ke {
|
|
|
142
142
|
return (e == null ? void 0 : e.validateForm(this)) ?? (r == null ? void 0 : r.validateForm(this));
|
|
143
143
|
}
|
|
144
144
|
hydrate(e) {
|
|
145
|
-
|
|
145
|
+
S(() => {
|
|
146
146
|
this.runtimeCore.hydrateEffect.trackEffect(
|
|
147
147
|
() => {
|
|
148
148
|
q(e) ? _(
|
|
149
149
|
() => e.value,
|
|
150
150
|
() => {
|
|
151
|
-
|
|
151
|
+
b(this.runtimeCore.model.value, e.value);
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
deep: !0,
|
|
@@ -157,13 +157,13 @@ class Ke {
|
|
|
157
157
|
) : U(e) ? _(
|
|
158
158
|
() => e,
|
|
159
159
|
() => {
|
|
160
|
-
|
|
160
|
+
b(this.runtimeCore.model.value, e);
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
deep: !0,
|
|
164
164
|
immediate: !0
|
|
165
165
|
}
|
|
166
|
-
) :
|
|
166
|
+
) : b(this.runtimeCore.model.value, e);
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
lazy: !1
|
|
@@ -172,12 +172,12 @@ class Ke {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
share(e) {
|
|
175
|
-
|
|
175
|
+
S(() => {
|
|
176
176
|
Object.keys(e).forEach((r) => {
|
|
177
177
|
q(e[r]) ? (console.log("data[key]", e[r]), _(
|
|
178
178
|
() => e[r].value,
|
|
179
179
|
() => {
|
|
180
|
-
|
|
180
|
+
Object.assign(this.runtimeCore.shared, {
|
|
181
181
|
[r]: e[r].value
|
|
182
182
|
});
|
|
183
183
|
},
|
|
@@ -188,7 +188,7 @@ class Ke {
|
|
|
188
188
|
)) : U(e[r]) ? _(
|
|
189
189
|
() => e[r],
|
|
190
190
|
() => {
|
|
191
|
-
|
|
191
|
+
Object.assign(this.runtimeCore.shared, {
|
|
192
192
|
[r]: e[r]
|
|
193
193
|
});
|
|
194
194
|
},
|
|
@@ -196,20 +196,20 @@ class Ke {
|
|
|
196
196
|
deep: !0,
|
|
197
197
|
immediate: !0
|
|
198
198
|
}
|
|
199
|
-
) :
|
|
199
|
+
) : b(this.runtimeCore.shared, {
|
|
200
200
|
[r]: e[r]
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
205
|
subscribeModel(e) {
|
|
206
|
-
|
|
206
|
+
S(() => {
|
|
207
207
|
const r = _(
|
|
208
208
|
() => this.readonlyReactiveModel.value,
|
|
209
209
|
(i) => {
|
|
210
210
|
e(i, {
|
|
211
211
|
stopSubscribe() {
|
|
212
|
-
|
|
212
|
+
S(() => {
|
|
213
213
|
r();
|
|
214
214
|
});
|
|
215
215
|
}
|
|
@@ -248,7 +248,7 @@ class Z {
|
|
|
248
248
|
return !r.lazy && e(), r.identifier ? this.identifierMap.get(r.identifier) || (this.effects.add(e), this.identifierMap.set(r.identifier, !0)) : this.effects.add(e), () => this.effects.delete(e);
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
|
-
var We = typeof global == "object" && global && global.Object === Object && global, Xe = typeof self == "object" && self && self.Object === Object && self, Q = We || Xe || Function("return this")(), E = Q.Symbol,
|
|
251
|
+
var We = typeof global == "object" && global && global.Object === Object && global, Xe = typeof self == "object" && self && self.Object === Object && self, Q = We || Xe || Function("return this")(), E = Q.Symbol, Fe = Object.prototype, Ye = Fe.hasOwnProperty, Ze = Fe.toString, V = E ? E.toStringTag : void 0;
|
|
252
252
|
function Je(t) {
|
|
253
253
|
var e = Ye.call(t, V), r = t[V];
|
|
254
254
|
try {
|
|
@@ -279,14 +279,14 @@ function st(t, e) {
|
|
|
279
279
|
s[r] = e(t[r], r, t);
|
|
280
280
|
return s;
|
|
281
281
|
}
|
|
282
|
-
var A = Array.isArray, nt = 1 / 0, Ce = E ? E.prototype : void 0,
|
|
282
|
+
var A = Array.isArray, nt = 1 / 0, Ce = E ? E.prototype : void 0, Oe = Ce ? Ce.toString : void 0;
|
|
283
283
|
function Me(t) {
|
|
284
284
|
if (typeof t == "string")
|
|
285
285
|
return t;
|
|
286
286
|
if (A(t))
|
|
287
287
|
return st(t, Me) + "";
|
|
288
288
|
if (k(t))
|
|
289
|
-
return
|
|
289
|
+
return Oe ? Oe.call(t) : "";
|
|
290
290
|
var e = t + "";
|
|
291
291
|
return e == "0" && 1 / t == -nt ? "-0" : e;
|
|
292
292
|
}
|
|
@@ -301,12 +301,12 @@ function ft(t) {
|
|
|
301
301
|
var e = we(t);
|
|
302
302
|
return e == at || e == lt || e == ot || e == ut;
|
|
303
303
|
}
|
|
304
|
-
var W = Q["__core-js_shared__"],
|
|
304
|
+
var W = Q["__core-js_shared__"], Se = function() {
|
|
305
305
|
var t = /[^.]+$/.exec(W && W.keys && W.keys.IE_PROTO || "");
|
|
306
306
|
return t ? "Symbol(src)_1." + t : "";
|
|
307
307
|
}();
|
|
308
308
|
function ct(t) {
|
|
309
|
-
return !!
|
|
309
|
+
return !!Se && Se in t;
|
|
310
310
|
}
|
|
311
311
|
var dt = Function.prototype, pt = dt.toString;
|
|
312
312
|
function ht(t) {
|
|
@@ -338,19 +338,19 @@ function ee(t, e) {
|
|
|
338
338
|
var r = Ct(t, e);
|
|
339
339
|
return It(r) ? r : void 0;
|
|
340
340
|
}
|
|
341
|
-
var
|
|
341
|
+
var je = function() {
|
|
342
342
|
try {
|
|
343
343
|
var t = ee(Object, "defineProperty");
|
|
344
344
|
return t({}, "", {}), t;
|
|
345
345
|
} catch {
|
|
346
346
|
}
|
|
347
|
-
}(),
|
|
348
|
-
function
|
|
347
|
+
}(), Ot = 9007199254740991, St = /^(?:0|[1-9]\d*)$/;
|
|
348
|
+
function jt(t, e) {
|
|
349
349
|
var r = typeof t;
|
|
350
|
-
return e = e ??
|
|
350
|
+
return e = e ?? Ot, !!e && (r == "number" || r != "symbol" && St.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
353
|
-
e == "__proto__" &&
|
|
352
|
+
function Ft(t, e, r) {
|
|
353
|
+
e == "__proto__" && je ? je(t, e, {
|
|
354
354
|
configurable: !0,
|
|
355
355
|
enumerable: !0,
|
|
356
356
|
value: r,
|
|
@@ -363,7 +363,7 @@ function xe(t, e) {
|
|
|
363
363
|
var wt = Object.prototype, Mt = wt.hasOwnProperty;
|
|
364
364
|
function xt(t, e, r) {
|
|
365
365
|
var i = t[e];
|
|
366
|
-
(!(Mt.call(t, e) && xe(i, r)) || r === void 0 && !(e in t)) &&
|
|
366
|
+
(!(Mt.call(t, e) && xe(i, r)) || r === void 0 && !(e in t)) && Ft(t, e, r);
|
|
367
367
|
}
|
|
368
368
|
var Et = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Rt = /^\w*$/;
|
|
369
369
|
function $t(t, e) {
|
|
@@ -399,18 +399,18 @@ function Ht(t, e) {
|
|
|
399
399
|
var r = this.__data__;
|
|
400
400
|
return this.size += this.has(t) ? 0 : 1, r[t] = T && e === void 0 ? Bt : e, this;
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function j(t) {
|
|
403
403
|
var e = -1, r = t == null ? 0 : t.length;
|
|
404
404
|
for (this.clear(); ++e < r; ) {
|
|
405
405
|
var i = t[e];
|
|
406
406
|
this.set(i[0], i[1]);
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
409
|
+
j.prototype.clear = Vt;
|
|
410
|
+
j.prototype.delete = Nt;
|
|
411
|
+
j.prototype.get = zt;
|
|
412
|
+
j.prototype.has = Gt;
|
|
413
|
+
j.prototype.set = Ht;
|
|
414
414
|
function Kt() {
|
|
415
415
|
this.__data__ = [], this.size = 0;
|
|
416
416
|
}
|
|
@@ -454,9 +454,9 @@ R.prototype.set = Qt;
|
|
|
454
454
|
var kt = ee(Q, "Map");
|
|
455
455
|
function At() {
|
|
456
456
|
this.size = 0, this.__data__ = {
|
|
457
|
-
hash: new
|
|
457
|
+
hash: new j(),
|
|
458
458
|
map: new (kt || R)(),
|
|
459
|
-
string: new
|
|
459
|
+
string: new j()
|
|
460
460
|
};
|
|
461
461
|
}
|
|
462
462
|
function er(t) {
|
|
@@ -481,18 +481,18 @@ function sr(t, e) {
|
|
|
481
481
|
var r = H(this, t), i = r.size;
|
|
482
482
|
return r.set(t, e), this.size += r.size == i ? 0 : 1, this;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function F(t) {
|
|
485
485
|
var e = -1, r = t == null ? 0 : t.length;
|
|
486
486
|
for (this.clear(); ++e < r; ) {
|
|
487
487
|
var i = t[e];
|
|
488
488
|
this.set(i[0], i[1]);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
491
|
+
F.prototype.clear = At;
|
|
492
|
+
F.prototype.delete = tr;
|
|
493
|
+
F.prototype.get = rr;
|
|
494
|
+
F.prototype.has = ir;
|
|
495
|
+
F.prototype.set = sr;
|
|
496
496
|
var nr = "Expected a function";
|
|
497
497
|
function te(t, e) {
|
|
498
498
|
if (typeof t != "function" || e != null && typeof e != "function")
|
|
@@ -504,9 +504,9 @@ function te(t, e) {
|
|
|
504
504
|
var a = t.apply(this, i);
|
|
505
505
|
return r.cache = n.set(s, a) || n, a;
|
|
506
506
|
};
|
|
507
|
-
return r.cache = new (te.Cache ||
|
|
507
|
+
return r.cache = new (te.Cache || F)(), r;
|
|
508
508
|
}
|
|
509
|
-
te.Cache =
|
|
509
|
+
te.Cache = F;
|
|
510
510
|
var or = 500;
|
|
511
511
|
function ar(t) {
|
|
512
512
|
var e = te(t, function(i) {
|
|
@@ -553,7 +553,7 @@ function hr(t, e, r, i) {
|
|
|
553
553
|
return t;
|
|
554
554
|
if (s != a) {
|
|
555
555
|
var p = l[f];
|
|
556
|
-
d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p :
|
|
556
|
+
d = i ? i(p, f, l) : void 0, d === void 0 && (d = G(p) ? p : jt(e[s + 1]) ? [] : {});
|
|
557
557
|
}
|
|
558
558
|
xt(l, f, d), l = l[f];
|
|
559
559
|
}
|
|
@@ -647,14 +647,14 @@ class mr {
|
|
|
647
647
|
const f = l.index, d = l.key, p = l.keyIndex;
|
|
648
648
|
if (o.isUndefined(l.stable))
|
|
649
649
|
return;
|
|
650
|
-
const
|
|
651
|
-
let y =
|
|
650
|
+
const h = s.parseStable(l.stable), v = i == null ? void 0 : i.index, C = i == null ? void 0 : i.key;
|
|
651
|
+
let y = h;
|
|
652
652
|
if (o.isProcessInprogress(y) || (n[p] = !0), i) {
|
|
653
653
|
const g = s.processedSchemas.value[v][C][f][d];
|
|
654
|
-
g && o.isObject(g) && d !== "component" && (y =
|
|
654
|
+
g && o.isObject(g) && d !== "component" && (y = b(g, y)), s.processedSchemas.value[v][C][f][d] = y, s.stableUpdater(n);
|
|
655
655
|
} else {
|
|
656
656
|
const g = s.processedSchemas.value[f][d];
|
|
657
|
-
g && o.isObject(g) && d !== "component" && (y =
|
|
657
|
+
g && o.isObject(g) && d !== "component" && (y = b(g, y)), s.processedSchemas.value[f][d] = y, s.stableUpdater(n);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
}
|
|
@@ -707,10 +707,10 @@ class mr {
|
|
|
707
707
|
return f(p);
|
|
708
708
|
this.defaultValueInprogressMap.set(r[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
709
709
|
this.defaultValueInprogressMap.values()
|
|
710
|
-
).every((
|
|
710
|
+
).every((h) => {
|
|
711
711
|
var v;
|
|
712
|
-
return !((v =
|
|
713
|
-
}) ? (f(p), this.defaultValueEffect.clearEffects(),
|
|
712
|
+
return !((v = h == null ? void 0 : h.includes) != null && v.call(h, "undefined"));
|
|
713
|
+
}) ? (f(p), this.defaultValueEffect.clearEffects(), S(() => {
|
|
714
714
|
d();
|
|
715
715
|
})) : f(p);
|
|
716
716
|
},
|
|
@@ -723,10 +723,10 @@ class mr {
|
|
|
723
723
|
(p) => {
|
|
724
724
|
this.defaultValueInprogressMap.set(r[s], p), !o.isProcessInprogress(p) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
725
725
|
this.defaultValueInprogressMap.values()
|
|
726
|
-
).every((
|
|
726
|
+
).every((h) => {
|
|
727
727
|
var v;
|
|
728
|
-
return !((v =
|
|
729
|
-
}) ? (f(p), this.defaultValueEffect.clearEffects(),
|
|
728
|
+
return !((v = h == null ? void 0 : h.includes) != null && v.call(h, "undefined"));
|
|
729
|
+
}) ? (f(p), this.defaultValueEffect.clearEffects(), S(() => {
|
|
730
730
|
d();
|
|
731
731
|
})) : f(p);
|
|
732
732
|
},
|
|
@@ -946,7 +946,7 @@ class vr {
|
|
|
946
946
|
);
|
|
947
947
|
else if (U(r.schemas)) {
|
|
948
948
|
const i = _(() => r.schemas, () => {
|
|
949
|
-
this.processor.parseSchemas(r.schemas),
|
|
949
|
+
this.processor.parseSchemas(r.schemas), S(() => {
|
|
950
950
|
i();
|
|
951
951
|
});
|
|
952
952
|
}, {
|
|
@@ -964,20 +964,20 @@ class vr {
|
|
|
964
964
|
share: (r) => {
|
|
965
965
|
Object.keys(r).forEach((i) => {
|
|
966
966
|
q(r[i]) ? (console.log("data[key]", r[i]), _(() => r[i].value, () => {
|
|
967
|
-
|
|
967
|
+
b(this.shared, {
|
|
968
968
|
[i]: r[i].value
|
|
969
969
|
});
|
|
970
970
|
}, {
|
|
971
971
|
deep: !0,
|
|
972
972
|
immediate: !0
|
|
973
973
|
})) : U(r[i]) ? _(() => r[i], () => {
|
|
974
|
-
|
|
974
|
+
b(this.shared, {
|
|
975
975
|
[i]: r[i]
|
|
976
976
|
});
|
|
977
977
|
}, {
|
|
978
978
|
deep: !0,
|
|
979
979
|
immediate: !0
|
|
980
|
-
}) :
|
|
980
|
+
}) : b(this.shared, {
|
|
981
981
|
[i]: r[i]
|
|
982
982
|
});
|
|
983
983
|
});
|
|
@@ -989,20 +989,20 @@ class vr {
|
|
|
989
989
|
const n = x(e.component);
|
|
990
990
|
if (!n)
|
|
991
991
|
return;
|
|
992
|
-
(se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form &&
|
|
993
|
-
const a =
|
|
992
|
+
(se = (ie = e.native) == null ? void 0 : ie.props) != null && se.Form && b(this.globalNativeFormOverride.props.Form, (oe = (ne = e.native) == null ? void 0 : ne.props) == null ? void 0 : oe.Form), (le = (ae = e.native) == null ? void 0 : ae.slots) != null && le.Form && b(this.globalNativeFormOverride.slots.Form, (fe = (ue = e.native) == null ? void 0 : ue.slots) == null ? void 0 : fe.Form);
|
|
993
|
+
const a = b(P((de = (ce = this.native) == null ? void 0 : ce.slots) == null ? void 0 : de.FormItem) ?? {}, (he = (pe = e.native) == null ? void 0 : pe.slots) == null ? void 0 : he.FormItem), l = {
|
|
994
994
|
display: "grid",
|
|
995
995
|
gridColumn: "1 / -1",
|
|
996
996
|
...e.grid
|
|
997
|
-
}, f =
|
|
997
|
+
}, f = b(P((be = (me = this.native) == null ? void 0 : me.props) == null ? void 0 : be.FormItem) ?? {}, (ve = (ge = e.native) == null ? void 0 : ge.props) == null ? void 0 : ve.FormItem), d = this.runtimeAdapter.getRuntimeField({
|
|
998
998
|
schema: e,
|
|
999
999
|
parentSchema: s,
|
|
1000
1000
|
index: r
|
|
1001
|
-
}), p = n.name,
|
|
1001
|
+
}), p = n.name, h = e.componentProps ?? {}, v = I.placeholderPresetByComponentName;
|
|
1002
1002
|
let C = e.placeholder, y = e.show;
|
|
1003
1003
|
y === void 0 && (y = !0);
|
|
1004
|
-
let g = e.label ?? "",
|
|
1005
|
-
if (e.runtime ?
|
|
1004
|
+
let g = e.label ?? "", O;
|
|
1005
|
+
if (e.runtime ? O = e.runtime : O = (s == null ? void 0 : s.runtime) ?? this.runtime, !o.isUndefined(r) && !o.isObjectEmpty(O) && (g = Y((ye = O == null ? void 0 : O.customizeListItemLabel) == null ? void 0 : ye.call(O, e.label ?? "", r + 1), "")), !C) {
|
|
1006
1006
|
let $ = "请输入";
|
|
1007
1007
|
o.isUndefined(p) ? C = `${$}${g}` : /* @ts-expect-error */ v[p.toLowerCase()] ? ($ = // @ts-expect-error
|
|
1008
1008
|
v[p.toLowerCase()], C = `${$}${g}`) : (Object.keys(v).forEach((_e) => {
|
|
@@ -1013,13 +1013,13 @@ class vr {
|
|
|
1013
1013
|
...e,
|
|
1014
1014
|
label: g
|
|
1015
1015
|
}), Ve = w.getItemContainer(this), Ne = w.getFormItemContainer(this), qe = this, Ue = e.componentSlots;
|
|
1016
|
-
return
|
|
1016
|
+
return m("div", {
|
|
1017
1017
|
style: l
|
|
1018
|
-
}, [
|
|
1018
|
+
}, [m(Ve, {
|
|
1019
1019
|
show: y
|
|
1020
1020
|
}, {
|
|
1021
1021
|
default() {
|
|
1022
|
-
return y &&
|
|
1022
|
+
return y && m(Ne, N(f, {
|
|
1023
1023
|
label: `${g ? `${g}:` : ""}`
|
|
1024
1024
|
}, d, $e), {
|
|
1025
1025
|
default() {
|
|
@@ -1029,7 +1029,7 @@ class vr {
|
|
|
1029
1029
|
baseModel: i,
|
|
1030
1030
|
placeholder: C,
|
|
1031
1031
|
componentSlots: Ue,
|
|
1032
|
-
props:
|
|
1032
|
+
props: h
|
|
1033
1033
|
});
|
|
1034
1034
|
},
|
|
1035
1035
|
...a
|
|
@@ -1045,9 +1045,9 @@ class vr {
|
|
|
1045
1045
|
...e.grid
|
|
1046
1046
|
}, s = w.getGroupContainer(this);
|
|
1047
1047
|
let n = e.show;
|
|
1048
|
-
return n === void 0 && (n = !0),
|
|
1048
|
+
return n === void 0 && (n = !0), m("div", {
|
|
1049
1049
|
style: i
|
|
1050
|
-
}, [n &&
|
|
1050
|
+
}, [n && m(s, {
|
|
1051
1051
|
schema: e
|
|
1052
1052
|
}, gr(r = e.children.map((a) => this.runtimeItemProcessor(a))) ? r : {
|
|
1053
1053
|
default: () => [r]
|
|
@@ -1075,32 +1075,32 @@ class vr {
|
|
|
1075
1075
|
let s = e.show;
|
|
1076
1076
|
s === void 0 && (s = !0);
|
|
1077
1077
|
const n = w.getListContainer(this), a = w.getListItemContainer(this);
|
|
1078
|
-
return
|
|
1078
|
+
return m("div", {
|
|
1079
1079
|
style: r
|
|
1080
|
-
}, [s &&
|
|
1080
|
+
}, [s && m(n, {
|
|
1081
1081
|
schema: e
|
|
1082
1082
|
}, {
|
|
1083
1083
|
default() {
|
|
1084
|
-
return i.model.value[e.field].map((l, f) =>
|
|
1084
|
+
return i.model.value[e.field].map((l, f) => m(a, null, {
|
|
1085
1085
|
default() {
|
|
1086
1086
|
return e.children.map((d) => i.runtimeItemProcessor(d, f, l, e));
|
|
1087
1087
|
},
|
|
1088
1088
|
delete({
|
|
1089
1089
|
container: d
|
|
1090
1090
|
} = {}) {
|
|
1091
|
-
var
|
|
1092
|
-
const p = d ??
|
|
1093
|
-
return Le(
|
|
1091
|
+
var h;
|
|
1092
|
+
const p = d ?? m("button", null, null);
|
|
1093
|
+
return Le(m(p, {
|
|
1094
1094
|
onClick: () => i.deleteListItem(e, f)
|
|
1095
|
-
}, null), [[De, ((
|
|
1095
|
+
}, null), [[De, ((h = i.model.value[e.field]) == null ? void 0 : h.length) > 1]]);
|
|
1096
1096
|
}
|
|
1097
1097
|
}));
|
|
1098
1098
|
},
|
|
1099
1099
|
add({
|
|
1100
1100
|
container: l
|
|
1101
1101
|
} = {}) {
|
|
1102
|
-
const f = l ??
|
|
1103
|
-
return
|
|
1102
|
+
const f = l ?? m("button", null, [Ge("添加")]);
|
|
1103
|
+
return m(f, {
|
|
1104
1104
|
onClick: () => i.addListItem(e)
|
|
1105
1105
|
}, null);
|
|
1106
1106
|
}
|
|
@@ -1116,14 +1116,14 @@ class vr {
|
|
|
1116
1116
|
gridColumn: "1 / -1",
|
|
1117
1117
|
gridAutoColumns: "1fr",
|
|
1118
1118
|
...this.grid
|
|
1119
|
-
}, r = this, i =
|
|
1120
|
-
return
|
|
1119
|
+
}, r = this, i = b(this.globalNativeFormOverride.props.Form, P((f = (l = this.native) == null ? void 0 : l.props) == null ? void 0 : f.Form) ?? {}), s = b(this.globalNativeFormOverride.slots.Form, P((p = (d = this.native) == null ? void 0 : d.slots) == null ? void 0 : p.Form) ?? {}), n = w.getFormContainer(this), a = this.runtimeAdapter.getFormModelPropName();
|
|
1120
|
+
return m(n, N(i, {
|
|
1121
1121
|
ref: this.formRef
|
|
1122
1122
|
}, {
|
|
1123
1123
|
[a]: this.model.value
|
|
1124
1124
|
}), {
|
|
1125
1125
|
default() {
|
|
1126
|
-
return
|
|
1126
|
+
return m("div", {
|
|
1127
1127
|
style: e
|
|
1128
1128
|
}, [r.runtimeProcessor(r.schemas.value)]);
|
|
1129
1129
|
},
|
|
@@ -1197,7 +1197,7 @@ const yr = {
|
|
|
1197
1197
|
props: n
|
|
1198
1198
|
}) {
|
|
1199
1199
|
let a;
|
|
1200
|
-
return o.isFunction(r.field) ? a = L(e, r.field()) : a = e[r.field],
|
|
1200
|
+
return o.isFunction(r.field) ? a = L(e, r.field()) : a = e[r.field], m(t, N({
|
|
1201
1201
|
modelValue: a,
|
|
1202
1202
|
"onUpdate:modelValue": (l) => {
|
|
1203
1203
|
o.isFunction(r.field) ? D(e, r.field(), l) : e[r.field] = l;
|
|
@@ -1265,7 +1265,7 @@ const yr = {
|
|
|
1265
1265
|
props: n
|
|
1266
1266
|
}) {
|
|
1267
1267
|
let a;
|
|
1268
|
-
return o.isFunction(r.field) ? a = L(e, r.field()) : a = e[r.field],
|
|
1268
|
+
return o.isFunction(r.field) ? a = L(e, r.field()) : a = e[r.field], m(t, N({
|
|
1269
1269
|
modelValue: a,
|
|
1270
1270
|
"onUpdate:modelValue": (l) => {
|
|
1271
1271
|
o.isFunction(r.field) ? D(e, r.field(), l) : e[r.field] = l;
|
|
@@ -1340,7 +1340,7 @@ const yr = {
|
|
|
1340
1340
|
props: n
|
|
1341
1341
|
}) {
|
|
1342
1342
|
let a;
|
|
1343
|
-
return o.isFunction(r.field) ? a = L(e, r.field()) : a = e[r.field],
|
|
1343
|
+
return o.isFunction(r.field) ? a = L(e, r.field()) : a = e[r.field], m(t, N({
|
|
1344
1344
|
value: a,
|
|
1345
1345
|
"onUpdate:value": (l) => {
|
|
1346
1346
|
o.isFunction(r.field) ? D(e, r.field(), l) : e[r.field] = l;
|
|
@@ -1456,7 +1456,7 @@ function Cr(t) {
|
|
|
1456
1456
|
}
|
|
1457
1457
|
];
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function Or(t) {
|
|
1460
1460
|
c.presets = t;
|
|
1461
1461
|
}
|
|
1462
1462
|
function re(t, e) {
|
|
@@ -1471,13 +1471,13 @@ function re(t, e) {
|
|
|
1471
1471
|
writable: !0
|
|
1472
1472
|
}), t;
|
|
1473
1473
|
}
|
|
1474
|
-
function
|
|
1474
|
+
function Sr(t) {
|
|
1475
1475
|
return re(t, "native");
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1477
|
+
function jr(t) {
|
|
1478
1478
|
return t.__proform_raw_object = !0, t;
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Fr(t) {
|
|
1481
1481
|
return re(t, "onetime");
|
|
1482
1482
|
}
|
|
1483
1483
|
function wr(t) {
|
|
@@ -1491,11 +1491,11 @@ function wr(t) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
export {
|
|
1493
1493
|
Ir as ProForm,
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1494
|
+
Sr as markNativeFunction,
|
|
1495
|
+
jr as markNativeObject,
|
|
1496
|
+
Fr as markOnetimeFunction,
|
|
1497
1497
|
wr as markStructuredPathParsing,
|
|
1498
1498
|
Cr as useForm,
|
|
1499
|
-
|
|
1499
|
+
Or as useFormPresetConfigurer,
|
|
1500
1500
|
re as useModifiers
|
|
1501
1501
|
};
|