@harbor-design/proform 1.2.3 → 1.2.5
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 +28 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -547,41 +547,46 @@ class me {
|
|
|
547
547
|
this.processor.parseSchemas(t.schemas);
|
|
548
548
|
}
|
|
549
549
|
getRuntimeMeta() {
|
|
550
|
+
const e = R(C(this.model.value));
|
|
551
|
+
let t;
|
|
550
552
|
return {
|
|
551
|
-
model:
|
|
553
|
+
model: e,
|
|
552
554
|
reactiveModel: this.model.value,
|
|
553
555
|
shared: this.shared,
|
|
554
|
-
share
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
556
|
+
// share 增加防抖,当开发者在过程中进行 share 时避免频繁触发爆栈
|
|
557
|
+
share: (s) => {
|
|
558
|
+
t && clearTimeout(t), t = setTimeout(() => {
|
|
559
|
+
if (N(s)) {
|
|
560
|
+
const i = P(() => s.value, () => {
|
|
561
|
+
h(this.shared, s.value), this.processor.schemaEffect.triggerEffects(), E(() => {
|
|
562
|
+
i();
|
|
563
|
+
});
|
|
564
|
+
}, {
|
|
565
|
+
deep: !0,
|
|
566
|
+
immediate: !0
|
|
559
567
|
});
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
+
} else if (q(s)) {
|
|
569
|
+
const i = P(() => s, () => {
|
|
570
|
+
h(this.shared, s), this.processor.schemaEffect.triggerEffects(), E(() => {
|
|
571
|
+
i();
|
|
572
|
+
});
|
|
573
|
+
}, {
|
|
574
|
+
deep: !0,
|
|
575
|
+
immediate: !0
|
|
568
576
|
});
|
|
569
|
-
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
});
|
|
573
|
-
} else
|
|
574
|
-
h(this.shared, t), this.processor.schemaEffect.triggerEffects();
|
|
577
|
+
} else
|
|
578
|
+
h(this.shared, s), this.processor.schemaEffect.triggerEffects();
|
|
579
|
+
}, 0);
|
|
575
580
|
}
|
|
576
581
|
};
|
|
577
582
|
}
|
|
578
583
|
runtimeItemProcessor(e, t, s = this.model.value, i) {
|
|
579
|
-
var z, k, $, B, D,
|
|
584
|
+
var z, k, $, B, D, T, G, W, K, H, J, Q, X;
|
|
580
585
|
const o = R(e.component);
|
|
581
586
|
if (!o)
|
|
582
587
|
return;
|
|
583
588
|
h(this.globalNativeFormOverride.props, (k = (z = e.native) == null ? void 0 : z.props) == null ? void 0 : k.Form), h(this.globalNativeFormOverride.slots, (B = ($ = e.native) == null ? void 0 : $.slots) == null ? void 0 : B.Form);
|
|
584
|
-
const n = h(C((
|
|
589
|
+
const n = h(C((T = (D = this.native) == null ? void 0 : D.slots) == null ? void 0 : T.FormItem) ?? {}, (W = (G = e.native) == null ? void 0 : G.slots) == null ? void 0 : W.FormItem), f = {
|
|
585
590
|
display: "grid",
|
|
586
591
|
gridColumn: "1 / -1",
|
|
587
592
|
...e.grid
|
|
@@ -591,7 +596,7 @@ class me {
|
|
|
591
596
|
index: t
|
|
592
597
|
}), v = o.name, j = e.componentProps ?? {}, I = b.placeholderPresetByComponentName;
|
|
593
598
|
let g = e.placeholder, y = e.show;
|
|
594
|
-
y === void 0 && (y = !0)
|
|
599
|
+
y === void 0 && (y = !0);
|
|
595
600
|
let m = e.label ?? "";
|
|
596
601
|
const V = (i == null ? void 0 : i.runtime) ?? this.runtime;
|
|
597
602
|
if (!l.isUndefined(t) && !l.isObjectEmpty(V) && (m = x((X = V == null ? void 0 : V.customizeListItemLabel) == null ? void 0 : X.call(V, e.label ?? "", t + 1), "")), !g) {
|