@harbor-design/proform 1.1.37 → 1.1.39
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 +31 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46,13 +46,16 @@ class l {
|
|
|
46
46
|
if (e === void 0)
|
|
47
47
|
return !0;
|
|
48
48
|
if (this.isObject(e)) {
|
|
49
|
-
if (e.setup
|
|
49
|
+
if (e.setup || this.isFunction(e.setup) || e.props)
|
|
50
50
|
return !1;
|
|
51
51
|
if (this.isObjectEmpty(e))
|
|
52
52
|
return !0;
|
|
53
|
-
for (const t in e)
|
|
53
|
+
for (const t in e) {
|
|
54
|
+
if (t === "componentProps")
|
|
55
|
+
return !1;
|
|
54
56
|
if (e.hasOwnProperty(t) && this.isProcessInprogress(e[t]))
|
|
55
57
|
return !0;
|
|
58
|
+
}
|
|
56
59
|
} else if (this.isArray(e)) {
|
|
57
60
|
if (this.isArrayEmpty(e))
|
|
58
61
|
return !0;
|
|
@@ -345,23 +348,28 @@ class de {
|
|
|
345
348
|
}
|
|
346
349
|
) : this.defaultValueEffect.trackEffect(
|
|
347
350
|
() => {
|
|
348
|
-
const c = this.schemaEffect.trackEffect(
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
this.defaultValueInprogressMap.
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
this.
|
|
359
|
-
this.defaultValueInprogressMap.
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
351
|
+
const c = this.schemaEffect.trackEffect(
|
|
352
|
+
() => {
|
|
353
|
+
/\{\s*model\s*\}/.test(t[i].toString()) ? this.fieldParser(t[i], (u) => {
|
|
354
|
+
if (!u)
|
|
355
|
+
return n(u);
|
|
356
|
+
this.defaultValueInprogressMap.set(t[i], u), !l.isProcessInprogress(u) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
357
|
+
this.defaultValueInprogressMap.values()
|
|
358
|
+
).every((d) => !d.includes("undefined")) ? (n(u), this.defaultValueEffect.clearEffects(), E(() => {
|
|
359
|
+
c();
|
|
360
|
+
})) : n(u);
|
|
361
|
+
}) : this.fieldParser(t[i], (u) => {
|
|
362
|
+
this.defaultValueInprogressMap.set(t[i], u), !l.isProcessInprogress(u) && this.defaultValueInprogressMap.size === this.baseDefaultValueFunctionsLength && Array.from(
|
|
363
|
+
this.defaultValueInprogressMap.values()
|
|
364
|
+
).every((d) => !d.includes("undefined")) ? (n(u), this.defaultValueEffect.clearEffects(), E(() => {
|
|
365
|
+
c();
|
|
366
|
+
})) : n(u);
|
|
367
|
+
});
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
lazy: !1
|
|
371
|
+
}
|
|
372
|
+
);
|
|
365
373
|
},
|
|
366
374
|
{
|
|
367
375
|
lazy: !1
|
|
@@ -564,11 +572,11 @@ class me {
|
|
|
564
572
|
};
|
|
565
573
|
}
|
|
566
574
|
runtimeItemProcessor(e, t, s = this.model.value, i) {
|
|
567
|
-
var
|
|
575
|
+
var k, x, $, B, D, G, T, W, K, H, J, Q, X;
|
|
568
576
|
const o = F(e.component);
|
|
569
577
|
if (!o)
|
|
570
578
|
return;
|
|
571
|
-
h(this.globalNativeFormOverride.props, (
|
|
579
|
+
h(this.globalNativeFormOverride.props, (x = (k = e.native) == null ? void 0 : k.props) == null ? void 0 : x.Form), h(this.globalNativeFormOverride.slots, (B = ($ = e.native) == null ? void 0 : $.slots) == null ? void 0 : B.Form);
|
|
572
580
|
const n = h(C((G = (D = this.native) == null ? void 0 : D.slots) == null ? void 0 : G.FormItem) ?? {}, (W = (T = e.native) == null ? void 0 : T.slots) == null ? void 0 : W.FormItem), c = {
|
|
573
581
|
display: "grid",
|
|
574
582
|
gridColumn: "1 / -1",
|
|
@@ -953,9 +961,9 @@ a(S, "schemaPreset", {
|
|
|
953
961
|
}
|
|
954
962
|
}), // 基于基本功能提出基本预设
|
|
955
963
|
a(S, "placeholderPresetByComponentName", S.getPlaceholderPrefixPresetByComponentName());
|
|
956
|
-
let
|
|
964
|
+
let z = S;
|
|
957
965
|
const P = {
|
|
958
|
-
...
|
|
966
|
+
...z,
|
|
959
967
|
adapters: {
|
|
960
968
|
...ye
|
|
961
969
|
}
|