@harbor-design/proform 1.2.22 → 1.2.24
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 +104 -95
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var ue = Object.defineProperty;
|
|
2
2
|
var ce = (r, e, t) => e in r ? ue(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
|
|
3
3
|
var a = (r, e, t) => (ce(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import { ref as N, readonly as se, nextTick as P, isRef as q, watch as
|
|
4
|
+
import { ref as N, readonly as se, nextTick as P, isRef as q, watch as y, isReactive as M, toRaw as S, reactive as re, createVNode as m, mergeProps as O, withDirectives as fe, vShow as de, createTextVNode as he, isVNode as pe, defineComponent as me } from "vue";
|
|
5
5
|
class l {
|
|
6
6
|
static typeChecker(e) {
|
|
7
7
|
return {}.toString.call(e);
|
|
@@ -91,8 +91,8 @@ function g(r) {
|
|
|
91
91
|
return new RegExp(s);
|
|
92
92
|
if (s instanceof Map) {
|
|
93
93
|
const o = /* @__PURE__ */ new Map();
|
|
94
|
-
for (const [n,
|
|
95
|
-
o.set(t(n), t(
|
|
94
|
+
for (const [n, d] of s)
|
|
95
|
+
o.set(t(n), t(d));
|
|
96
96
|
return o;
|
|
97
97
|
}
|
|
98
98
|
if (s instanceof Set) {
|
|
@@ -118,7 +118,7 @@ function g(r) {
|
|
|
118
118
|
}
|
|
119
119
|
return t(r);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function _(r, e) {
|
|
122
122
|
return r.replace(/undefined/g, e);
|
|
123
123
|
}
|
|
124
124
|
class be {
|
|
@@ -145,7 +145,7 @@ class be {
|
|
|
145
145
|
P(() => {
|
|
146
146
|
this.runtimeCore.hydrateEffect.trackEffect(
|
|
147
147
|
() => {
|
|
148
|
-
q(e) ?
|
|
148
|
+
q(e) ? y(
|
|
149
149
|
() => e.value,
|
|
150
150
|
() => {
|
|
151
151
|
h(this.runtimeCore.model.value, e.value);
|
|
@@ -154,7 +154,7 @@ class be {
|
|
|
154
154
|
deep: !0,
|
|
155
155
|
immediate: !0
|
|
156
156
|
}
|
|
157
|
-
) : M(e) ?
|
|
157
|
+
) : M(e) ? y(
|
|
158
158
|
() => e,
|
|
159
159
|
() => {
|
|
160
160
|
h(this.runtimeCore.model.value, e);
|
|
@@ -174,7 +174,7 @@ class be {
|
|
|
174
174
|
share(e) {
|
|
175
175
|
P(() => {
|
|
176
176
|
if (q(e)) {
|
|
177
|
-
const t =
|
|
177
|
+
const t = y(
|
|
178
178
|
() => e.value,
|
|
179
179
|
() => {
|
|
180
180
|
h(this.runtimeCore.shared, e.value), this.runtimeCore.processor.schemaEffect.triggerEffects(), P(() => {
|
|
@@ -187,7 +187,7 @@ class be {
|
|
|
187
187
|
}
|
|
188
188
|
);
|
|
189
189
|
} else if (M(e)) {
|
|
190
|
-
const t =
|
|
190
|
+
const t = y(
|
|
191
191
|
() => e,
|
|
192
192
|
() => {
|
|
193
193
|
h(this.runtimeCore.shared, e), this.runtimeCore.processor.schemaEffect.triggerEffects(), P(() => {
|
|
@@ -205,7 +205,7 @@ class be {
|
|
|
205
205
|
}
|
|
206
206
|
subscribeModel(e) {
|
|
207
207
|
P(() => {
|
|
208
|
-
const t =
|
|
208
|
+
const t = y(
|
|
209
209
|
() => this.readonlyReactiveModel.value,
|
|
210
210
|
(s) => {
|
|
211
211
|
e(s, {
|
|
@@ -230,7 +230,7 @@ class be {
|
|
|
230
230
|
), this.readonlyReactiveModel.value = se(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
class
|
|
233
|
+
class x {
|
|
234
234
|
constructor() {
|
|
235
235
|
a(this, "effects", /* @__PURE__ */ new Set());
|
|
236
236
|
}
|
|
@@ -258,12 +258,12 @@ class ve {
|
|
|
258
258
|
a(this, "componentPropsPreset", C.componentPropsPreset);
|
|
259
259
|
a(this, "stableUpdaterProcessProgress");
|
|
260
260
|
a(this, "stableUpdaterTimes", 0);
|
|
261
|
-
a(this, "schemaEffect", new
|
|
262
|
-
a(this, "defaultValueEffect", new
|
|
261
|
+
a(this, "schemaEffect", new x());
|
|
262
|
+
a(this, "defaultValueEffect", new x());
|
|
263
263
|
a(this, "defaultValueInprogressMap", /* @__PURE__ */ new Map());
|
|
264
264
|
a(this, "baseDefaultValueFunctionsLength");
|
|
265
265
|
a(this, "isModelInitialized", !0);
|
|
266
|
-
this.runtimeCore = e, this.processedSchemas = e.schemas, this.processedModel = e.model, this.getRuntimeMeta = e.getRuntimeMeta.bind(e),
|
|
266
|
+
this.runtimeCore = e, this.processedSchemas = e.schemas, this.processedModel = e.model, this.getRuntimeMeta = e.getRuntimeMeta.bind(e), y(
|
|
267
267
|
() => this.processedModel.value,
|
|
268
268
|
() => {
|
|
269
269
|
this.schemaEffect.triggerEffects();
|
|
@@ -324,21 +324,21 @@ class ve {
|
|
|
324
324
|
// 核心单 schema 处理过程,接收一个对象键值对的数据结构
|
|
325
325
|
parseItem(e, t, s) {
|
|
326
326
|
const i = this, o = Array.from({
|
|
327
|
-
length: Object.keys(e).filter((
|
|
327
|
+
length: Object.keys(e).filter((d) => d !== "children").length
|
|
328
328
|
}).fill(!1);
|
|
329
329
|
this.objectParser({ data: e, index: t, updater: n });
|
|
330
|
-
function n(
|
|
331
|
-
const
|
|
332
|
-
if (l.isUndefined(
|
|
330
|
+
function n(d) {
|
|
331
|
+
const f = d.index, c = d.key, p = d.keyIndex;
|
|
332
|
+
if (l.isUndefined(d.stable))
|
|
333
333
|
return;
|
|
334
|
-
const V = i.parseStable(
|
|
335
|
-
let
|
|
336
|
-
if (l.isProcessInprogress(
|
|
337
|
-
const
|
|
338
|
-
|
|
334
|
+
const V = i.parseStable(d.stable), F = s == null ? void 0 : s.index, I = s == null ? void 0 : s.key;
|
|
335
|
+
let v = V;
|
|
336
|
+
if (l.isProcessInprogress(v) || (o[p] = !0), s) {
|
|
337
|
+
const b = i.processedSchemas.value[F][I][f][c];
|
|
338
|
+
b && l.isObject(b) && c !== "component" && (v = h(b, v)), i.processedSchemas.value[F][I][f][c] = v, i.stableUpdater(o);
|
|
339
339
|
} else {
|
|
340
|
-
const
|
|
341
|
-
|
|
340
|
+
const b = i.processedSchemas.value[f][c];
|
|
341
|
+
b && l.isObject(b) && c !== "component" && (v = h(b, v)), i.processedSchemas.value[f][c] = v, i.stableUpdater(o);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
@@ -353,19 +353,19 @@ class ve {
|
|
|
353
353
|
keyIndex: o
|
|
354
354
|
});
|
|
355
355
|
else {
|
|
356
|
-
const n = (
|
|
356
|
+
const n = (d) => {
|
|
357
357
|
e.updater({
|
|
358
358
|
...e,
|
|
359
359
|
key: i,
|
|
360
360
|
keyIndex: o,
|
|
361
|
-
stable:
|
|
361
|
+
stable: d
|
|
362
362
|
});
|
|
363
363
|
};
|
|
364
364
|
l.isFunction(t[i]) ? i !== "defaultValue" ? this.schemaEffect.trackEffect(
|
|
365
365
|
() => {
|
|
366
366
|
if (i === "component") {
|
|
367
|
-
const
|
|
368
|
-
this.promiseFieldParser(
|
|
367
|
+
const d = t[i](this.getRuntimeMeta());
|
|
368
|
+
this.promiseFieldParser(d, n, !1);
|
|
369
369
|
} else
|
|
370
370
|
this.fieldParser(t[i], n);
|
|
371
371
|
},
|
|
@@ -374,22 +374,28 @@ class ve {
|
|
|
374
374
|
}
|
|
375
375
|
) : this.defaultValueEffect.trackEffect(
|
|
376
376
|
() => {
|
|
377
|
-
const
|
|
377
|
+
const d = this.schemaEffect.trackEffect(
|
|
378
378
|
() => {
|
|
379
|
-
/\{\s*model\s*\}/.test(t[i].toString()) ? this.fieldParser(t[i], (
|
|
380
|
-
if (!
|
|
381
|
-
return n(
|
|
382
|
-
this.defaultValueInprogressMap.set(t[i],
|
|
379
|
+
/\{\s*model\s*\}/.test(t[i].toString()) ? this.fieldParser(t[i], (f) => {
|
|
380
|
+
if (!f)
|
|
381
|
+
return n(f);
|
|
382
|
+
this.defaultValueInprogressMap.set(t[i], f), !l.isProcessInprogress(f) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
383
383
|
this.defaultValueInprogressMap.values()
|
|
384
|
-
).every((
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
384
|
+
).every((c) => {
|
|
385
|
+
var p;
|
|
386
|
+
return !((p = c == null ? void 0 : c.includes) != null && p.call(c, "undefined"));
|
|
387
|
+
}) ? (n(f), this.defaultValueEffect.clearEffects(), P(() => {
|
|
388
|
+
d();
|
|
389
|
+
})) : n(f);
|
|
390
|
+
}) : this.fieldParser(t[i], (f) => {
|
|
391
|
+
this.defaultValueInprogressMap.set(t[i], f), !l.isProcessInprogress(f) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
389
392
|
this.defaultValueInprogressMap.values()
|
|
390
|
-
).every((
|
|
391
|
-
|
|
392
|
-
|
|
393
|
+
).every((c) => {
|
|
394
|
+
var p;
|
|
395
|
+
return !((p = c == null ? void 0 : c.includes) != null && p.call(c, "undefined"));
|
|
396
|
+
}) ? (n(f), this.defaultValueEffect.clearEffects(), P(() => {
|
|
397
|
+
d();
|
|
398
|
+
})) : n(f);
|
|
393
399
|
});
|
|
394
400
|
},
|
|
395
401
|
{
|
|
@@ -406,11 +412,11 @@ class ve {
|
|
|
406
412
|
}
|
|
407
413
|
promiseFieldParser(e, t, s) {
|
|
408
414
|
l.isPromise(e) ? e.then((i) => {
|
|
409
|
-
l.isString(i) && (i =
|
|
415
|
+
l.isString(i) && (i = _(i, "")), s && l.isObject(i) && !l.isNativeObject(i) ? this.objectParser({
|
|
410
416
|
data: i,
|
|
411
417
|
updater: t
|
|
412
418
|
}) : t(i);
|
|
413
|
-
}) : (l.isString(e) && (e =
|
|
419
|
+
}) : (l.isString(e) && (e = _(e, "")), s && l.isObject(e) && !l.isNativeObject(e) ? this.objectParser({
|
|
414
420
|
data: e,
|
|
415
421
|
updater: t
|
|
416
422
|
}) : t(e));
|
|
@@ -425,12 +431,15 @@ class ve {
|
|
|
425
431
|
...this.getRuntimeMeta()
|
|
426
432
|
})
|
|
427
433
|
);
|
|
428
|
-
else {
|
|
429
|
-
const i = e
|
|
434
|
+
else if (e.__proform_async_result) {
|
|
435
|
+
const i = e.__proform_async_result;
|
|
430
436
|
this.promiseFieldParser(i, t, s);
|
|
437
|
+
} else {
|
|
438
|
+
const i = e(this.getRuntimeMeta());
|
|
439
|
+
e.__proform_async_result = i, this.promiseFieldParser(i, t, s);
|
|
431
440
|
}
|
|
432
441
|
else
|
|
433
|
-
q(e) ?
|
|
442
|
+
q(e) ? y(
|
|
434
443
|
() => e.value,
|
|
435
444
|
() => {
|
|
436
445
|
l.isUndefined(e.value) || (s && l.isObject(e.value) && !l.isNativeObject(e.value) ? this.objectParser({
|
|
@@ -442,7 +451,7 @@ class ve {
|
|
|
442
451
|
immediate: !0,
|
|
443
452
|
deep: !0
|
|
444
453
|
}
|
|
445
|
-
) : M(e) ?
|
|
454
|
+
) : M(e) ? y(
|
|
446
455
|
() => e,
|
|
447
456
|
() => {
|
|
448
457
|
l.isUndefined(e) || (s && l.isObject(e) && !l.isNativeObject(e) ? this.objectParser({
|
|
@@ -539,7 +548,7 @@ class ge {
|
|
|
539
548
|
list: this.runtimeListProcessor.bind(this)
|
|
540
549
|
});
|
|
541
550
|
a(this, "formRef", N(null));
|
|
542
|
-
a(this, "hydrateEffect", new
|
|
551
|
+
a(this, "hydrateEffect", new x());
|
|
543
552
|
a(this, "native", re({}));
|
|
544
553
|
a(this, "grid", {});
|
|
545
554
|
a(this, "runtime", {});
|
|
@@ -557,7 +566,7 @@ class ge {
|
|
|
557
566
|
this.setup = e, this.processor = new ve(this);
|
|
558
567
|
const t = this.setup(this);
|
|
559
568
|
if (this.ui = t.ui ?? u.presets.ui, this.runtimeAdapter = new ye(this.ui), Object.assign(this.globalNativeFormOverride, this.runtimeAdapter.getRuntimeNative()), q(t.schemas))
|
|
560
|
-
|
|
569
|
+
y(
|
|
561
570
|
// @ts-expect-error
|
|
562
571
|
() => t.schemas.value,
|
|
563
572
|
() => {
|
|
@@ -568,7 +577,7 @@ class ge {
|
|
|
568
577
|
}
|
|
569
578
|
);
|
|
570
579
|
else if (M(t.schemas)) {
|
|
571
|
-
const s =
|
|
580
|
+
const s = y(() => t.schemas, () => {
|
|
572
581
|
this.processor.parseSchemas(t.schemas), P(() => {
|
|
573
582
|
s();
|
|
574
583
|
});
|
|
@@ -589,7 +598,7 @@ class ge {
|
|
|
589
598
|
share: (s) => {
|
|
590
599
|
t && clearTimeout(t), t = setTimeout(() => {
|
|
591
600
|
if (q(s)) {
|
|
592
|
-
const i =
|
|
601
|
+
const i = y(() => s.value, () => {
|
|
593
602
|
h(this.shared, s.value), this.processor.schemaEffect.triggerEffects(), P(() => {
|
|
594
603
|
i();
|
|
595
604
|
});
|
|
@@ -598,7 +607,7 @@ class ge {
|
|
|
598
607
|
immediate: !0
|
|
599
608
|
});
|
|
600
609
|
} else if (M(s)) {
|
|
601
|
-
const i =
|
|
610
|
+
const i = y(() => s, () => {
|
|
602
611
|
h(this.shared, s), this.processor.schemaEffect.triggerEffects(), P(() => {
|
|
603
612
|
i();
|
|
604
613
|
});
|
|
@@ -613,43 +622,43 @@ class ge {
|
|
|
613
622
|
};
|
|
614
623
|
}
|
|
615
624
|
runtimeItemProcessor(e, t, s = this.model.value, i) {
|
|
616
|
-
var
|
|
625
|
+
var $, z, k, B, D, T, G, W, K, H, J, Q, X, Y, Z, A, ee;
|
|
617
626
|
const o = S(e.component);
|
|
618
627
|
if (!o)
|
|
619
628
|
return;
|
|
620
|
-
(z = (
|
|
621
|
-
const n = h(g((H = (K = this.native) == null ? void 0 : K.slots) == null ? void 0 : H.FormItem) ?? {}, (Q = (J = e.native) == null ? void 0 : J.slots) == null ? void 0 : Q.FormItem),
|
|
629
|
+
(z = ($ = e.native) == null ? void 0 : $.props) != null && z.Form && h(this.globalNativeFormOverride.props.Form, (B = (k = e.native) == null ? void 0 : k.props) == null ? void 0 : B.Form), (T = (D = e.native) == null ? void 0 : D.slots) != null && T.Form && h(this.globalNativeFormOverride.slots.Form, (W = (G = e.native) == null ? void 0 : G.slots) == null ? void 0 : W.Form);
|
|
630
|
+
const n = h(g((H = (K = this.native) == null ? void 0 : K.slots) == null ? void 0 : H.FormItem) ?? {}, (Q = (J = e.native) == null ? void 0 : J.slots) == null ? void 0 : Q.FormItem), d = {
|
|
622
631
|
display: "grid",
|
|
623
632
|
gridColumn: "1 / -1",
|
|
624
633
|
...e.grid
|
|
625
|
-
},
|
|
634
|
+
}, f = h(g((Y = (X = this.native) == null ? void 0 : X.props) == null ? void 0 : Y.FormItem) ?? {}, (A = (Z = e.native) == null ? void 0 : Z.props) == null ? void 0 : A.FormItem), c = this.runtimeAdapter.getRuntimeField({
|
|
626
635
|
schema: e,
|
|
627
636
|
parentSchema: i,
|
|
628
637
|
index: t
|
|
629
|
-
}),
|
|
630
|
-
let I = e.placeholder,
|
|
631
|
-
|
|
632
|
-
let
|
|
633
|
-
if (e.runtime ? E = e.runtime : E = (i == null ? void 0 : i.runtime) ?? this.runtime, !l.isUndefined(t) && !l.isObjectEmpty(E) && (
|
|
638
|
+
}), p = o.name, V = e.componentProps ?? {}, F = C.placeholderPresetByComponentName;
|
|
639
|
+
let I = e.placeholder, v = e.show;
|
|
640
|
+
v === void 0 && (v = !0);
|
|
641
|
+
let b = e.label ?? "", E;
|
|
642
|
+
if (e.runtime ? E = e.runtime : E = (i == null ? void 0 : i.runtime) ?? this.runtime, !l.isUndefined(t) && !l.isObjectEmpty(E) && (b = _((ee = E == null ? void 0 : E.customizeListItemLabel) == null ? void 0 : ee.call(E, e.label ?? "", t + 1), "")), !I) {
|
|
634
643
|
let w = "请输入";
|
|
635
|
-
l.isUndefined(
|
|
636
|
-
F[
|
|
637
|
-
|
|
638
|
-
}), I = `${w}${
|
|
644
|
+
l.isUndefined(p) ? I = `${w}${b}` : /* @ts-expect-error */ F[p.toLowerCase()] ? (w = // @ts-expect-error
|
|
645
|
+
F[p.toLowerCase()], I = `${w}${b}`) : (Object.keys(F).forEach((te) => {
|
|
646
|
+
p.toLowerCase().includes(te.toLowerCase()) && (w = F[te]);
|
|
647
|
+
}), I = `${w}${b}`);
|
|
639
648
|
}
|
|
640
649
|
const ie = this.runtimeAdapter.getRuntimeRequired({
|
|
641
650
|
...e,
|
|
642
|
-
label:
|
|
651
|
+
label: b
|
|
643
652
|
}), oe = j.getItemContainer(this), ne = j.getFormItemContainer(this), le = this, ae = e.componentSlots;
|
|
644
|
-
return
|
|
645
|
-
style:
|
|
646
|
-
}, [
|
|
647
|
-
show:
|
|
653
|
+
return m("div", {
|
|
654
|
+
style: d
|
|
655
|
+
}, [m(oe, {
|
|
656
|
+
show: v
|
|
648
657
|
}, {
|
|
649
658
|
default() {
|
|
650
|
-
return
|
|
651
|
-
label: `${
|
|
652
|
-
},
|
|
659
|
+
return v && m(ne, O(f, {
|
|
660
|
+
label: `${b ? `${b}:` : ""}`
|
|
661
|
+
}, c, ie), {
|
|
653
662
|
default() {
|
|
654
663
|
return le.runtimeAdapter.formComponentRenderer({
|
|
655
664
|
Component: o,
|
|
@@ -673,9 +682,9 @@ class ge {
|
|
|
673
682
|
...e.grid
|
|
674
683
|
}, i = j.getGroupContainer(this);
|
|
675
684
|
let o = e.show;
|
|
676
|
-
return o === void 0 && (o = !0),
|
|
685
|
+
return o === void 0 && (o = !0), m("div", {
|
|
677
686
|
style: s
|
|
678
|
-
}, [o &&
|
|
687
|
+
}, [o && m(i, {
|
|
679
688
|
schema: e
|
|
680
689
|
}, Pe(t = e.children.map((n) => this.runtimeItemProcessor(n))) ? t : {
|
|
681
690
|
default: () => [t]
|
|
@@ -703,32 +712,32 @@ class ge {
|
|
|
703
712
|
let i = e.show;
|
|
704
713
|
i === void 0 && (i = !0);
|
|
705
714
|
const o = j.getListContainer(this), n = j.getListItemContainer(this);
|
|
706
|
-
return
|
|
715
|
+
return m("div", {
|
|
707
716
|
style: t
|
|
708
|
-
}, [i &&
|
|
717
|
+
}, [i && m(o, {
|
|
709
718
|
schema: e
|
|
710
719
|
}, {
|
|
711
720
|
default() {
|
|
712
|
-
return s.model.value[e.field].map((
|
|
721
|
+
return s.model.value[e.field].map((d, f) => m(n, null, {
|
|
713
722
|
default() {
|
|
714
|
-
return e.children.map((
|
|
723
|
+
return e.children.map((c) => s.runtimeItemProcessor(c, f, d, e));
|
|
715
724
|
},
|
|
716
725
|
delete({
|
|
717
|
-
container:
|
|
726
|
+
container: c
|
|
718
727
|
} = {}) {
|
|
719
728
|
var V;
|
|
720
|
-
const
|
|
721
|
-
return fe(p
|
|
722
|
-
onClick: () => s.deleteListItem(e,
|
|
729
|
+
const p = c ?? m("button", null, null);
|
|
730
|
+
return fe(m(p, {
|
|
731
|
+
onClick: () => s.deleteListItem(e, f)
|
|
723
732
|
}, null), [[de, ((V = s.model.value[e.field]) == null ? void 0 : V.length) > 1]]);
|
|
724
733
|
}
|
|
725
734
|
}));
|
|
726
735
|
},
|
|
727
736
|
add({
|
|
728
|
-
container:
|
|
737
|
+
container: d
|
|
729
738
|
} = {}) {
|
|
730
|
-
const
|
|
731
|
-
return
|
|
739
|
+
const f = d ?? m("button", null, [he("添加")]);
|
|
740
|
+
return m(f, {
|
|
732
741
|
onClick: () => s.addListItem(e)
|
|
733
742
|
}, null);
|
|
734
743
|
}
|
|
@@ -738,20 +747,20 @@ class ge {
|
|
|
738
747
|
return e.map((t) => (t.type || (t.type = "item"), this.processorBySchemaType[t.type](t)));
|
|
739
748
|
}
|
|
740
749
|
exec() {
|
|
741
|
-
var f, c,
|
|
750
|
+
var d, f, c, p;
|
|
742
751
|
const e = {
|
|
743
752
|
display: "grid",
|
|
744
753
|
gridColumn: "1 / -1",
|
|
745
754
|
gridAutoColumns: "1fr",
|
|
746
755
|
...this.grid
|
|
747
|
-
}, t = this, s = h(this.globalNativeFormOverride.props.Form, g((
|
|
748
|
-
return
|
|
756
|
+
}, t = this, s = h(this.globalNativeFormOverride.props.Form, g((f = (d = this.native) == null ? void 0 : d.props) == null ? void 0 : f.Form) ?? {}), i = h(this.globalNativeFormOverride.slots.Form, g((p = (c = this.native) == null ? void 0 : c.slots) == null ? void 0 : p.Form) ?? {}), o = j.getFormContainer(this), n = this.runtimeAdapter.getFormModelPropName();
|
|
757
|
+
return m(o, O(s, {
|
|
749
758
|
ref: this.formRef
|
|
750
759
|
}, {
|
|
751
760
|
[n]: this.model.value
|
|
752
761
|
}), {
|
|
753
762
|
default() {
|
|
754
|
-
return
|
|
763
|
+
return m("div", {
|
|
755
764
|
style: e
|
|
756
765
|
}, [t.runtimeProcessor(t.schemas.value)]);
|
|
757
766
|
},
|
|
@@ -821,7 +830,7 @@ const Ce = {
|
|
|
821
830
|
componentSlots: i,
|
|
822
831
|
props: o
|
|
823
832
|
}) {
|
|
824
|
-
return
|
|
833
|
+
return m(r, O({
|
|
825
834
|
modelValue: e[t.field],
|
|
826
835
|
"onUpdate:modelValue": (n) => e[t.field] = n,
|
|
827
836
|
placeholder: s
|
|
@@ -882,7 +891,7 @@ const Ce = {
|
|
|
882
891
|
componentSlots: i,
|
|
883
892
|
props: o
|
|
884
893
|
}) {
|
|
885
|
-
return
|
|
894
|
+
return m(r, O({
|
|
886
895
|
modelValue: e[t.field],
|
|
887
896
|
"onUpdate:modelValue": (n) => e[t.field] = n,
|
|
888
897
|
placeholder: s
|
|
@@ -950,7 +959,7 @@ const Ce = {
|
|
|
950
959
|
componentSlots: i,
|
|
951
960
|
props: o
|
|
952
961
|
}) {
|
|
953
|
-
return
|
|
962
|
+
return m(r, O({
|
|
954
963
|
value: e[t.field],
|
|
955
964
|
"onUpdate:value": (n) => e[t.field] = n,
|
|
956
965
|
placeholder: s
|
|
@@ -1032,9 +1041,9 @@ a(R, "schemaPreset", {
|
|
|
1032
1041
|
}
|
|
1033
1042
|
}), // 基于基本功能提出基本预设
|
|
1034
1043
|
a(R, "placeholderPresetByComponentName", R.getPlaceholderPrefixPresetByComponentName());
|
|
1035
|
-
let
|
|
1044
|
+
let L = R;
|
|
1036
1045
|
const C = {
|
|
1037
|
-
|
|
1046
|
+
...L,
|
|
1038
1047
|
adapters: {
|
|
1039
1048
|
...Ce
|
|
1040
1049
|
}
|