@harbor-design/proform 1.2.20 → 1.2.22
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
CHANGED
|
@@ -227,7 +227,7 @@ class be {
|
|
|
227
227
|
var e;
|
|
228
228
|
(e = this.runtimeCore) != null && e.model.value && (this.runtimeCore.model.value = g(
|
|
229
229
|
this.runtimeCore.processor.stableModel
|
|
230
|
-
), this.readonlyReactiveModel.value = se(this.runtimeCore.model.value));
|
|
230
|
+
), this.readonlyReactiveModel.value = se(this.runtimeCore.model.value), this.runtimeCore.runtimeAdapter.clearValidate(this.runtimeCore));
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
class L {
|
|
@@ -331,11 +331,11 @@ class ve {
|
|
|
331
331
|
const c = f.index, d = f.key, y = f.keyIndex;
|
|
332
332
|
if (l.isUndefined(f.stable))
|
|
333
333
|
return;
|
|
334
|
-
const
|
|
335
|
-
let b =
|
|
334
|
+
const V = i.parseStable(f.stable), F = s == null ? void 0 : s.index, I = s == null ? void 0 : s.key;
|
|
335
|
+
let b = V;
|
|
336
336
|
if (l.isProcessInprogress(b) || (o[y] = !0), s) {
|
|
337
|
-
const m = i.processedSchemas.value[
|
|
338
|
-
m && l.isObject(m) && d !== "component" && (b = h(m, b)), i.processedSchemas.value[
|
|
337
|
+
const m = i.processedSchemas.value[F][I][c][d];
|
|
338
|
+
m && l.isObject(m) && d !== "component" && (b = h(m, b)), i.processedSchemas.value[F][I][c][d] = b, i.stableUpdater(o);
|
|
339
339
|
} else {
|
|
340
340
|
const m = i.processedSchemas.value[c][d];
|
|
341
341
|
m && l.isObject(m) && d !== "component" && (b = h(m, b)), i.processedSchemas.value[c][d] = b, i.stableUpdater(o);
|
|
@@ -626,16 +626,15 @@ class ge {
|
|
|
626
626
|
schema: e,
|
|
627
627
|
parentSchema: i,
|
|
628
628
|
index: t
|
|
629
|
-
}), y = o.name,
|
|
629
|
+
}), y = o.name, V = e.componentProps ?? {}, F = C.placeholderPresetByComponentName;
|
|
630
630
|
let I = e.placeholder, b = e.show;
|
|
631
631
|
b === void 0 && (b = !0);
|
|
632
|
-
let m = e.label ?? "";
|
|
633
|
-
|
|
634
|
-
if (!l.isUndefined(t) && !l.isObjectEmpty(V) && (m = x((ee = V == null ? void 0 : V.customizeListItemLabel) == null ? void 0 : ee.call(V, e.label ?? "", t + 1), "")), !I) {
|
|
632
|
+
let m = e.label ?? "", E;
|
|
633
|
+
if (e.runtime ? E = e.runtime : E = (i == null ? void 0 : i.runtime) ?? this.runtime, !l.isUndefined(t) && !l.isObjectEmpty(E) && (m = x((ee = E == null ? void 0 : E.customizeListItemLabel) == null ? void 0 : ee.call(E, e.label ?? "", t + 1), "")), !I) {
|
|
635
634
|
let w = "请输入";
|
|
636
|
-
l.isUndefined(y) ? I = `${w}${m}` : /* @ts-expect-error */
|
|
637
|
-
|
|
638
|
-
y.toLowerCase().includes(te.toLowerCase()) && (w =
|
|
635
|
+
l.isUndefined(y) ? I = `${w}${m}` : /* @ts-expect-error */ F[y.toLowerCase()] ? (w = // @ts-expect-error
|
|
636
|
+
F[y.toLowerCase()], I = `${w}${m}`) : (Object.keys(F).forEach((te) => {
|
|
637
|
+
y.toLowerCase().includes(te.toLowerCase()) && (w = F[te]);
|
|
639
638
|
}), I = `${w}${m}`);
|
|
640
639
|
}
|
|
641
640
|
const ie = this.runtimeAdapter.getRuntimeRequired({
|
|
@@ -658,7 +657,7 @@ class ge {
|
|
|
658
657
|
baseModel: s,
|
|
659
658
|
placeholder: I,
|
|
660
659
|
componentSlots: ae,
|
|
661
|
-
props:
|
|
660
|
+
props: V
|
|
662
661
|
});
|
|
663
662
|
},
|
|
664
663
|
...n
|
|
@@ -717,11 +716,11 @@ class ge {
|
|
|
717
716
|
delete({
|
|
718
717
|
container: d
|
|
719
718
|
} = {}) {
|
|
720
|
-
var
|
|
719
|
+
var V;
|
|
721
720
|
const y = d ?? p("button", null, null);
|
|
722
721
|
return fe(p(y, {
|
|
723
722
|
onClick: () => s.deleteListItem(e, c)
|
|
724
|
-
}, null), [[de, ((
|
|
723
|
+
}, null), [[de, ((V = s.model.value[e.field]) == null ? void 0 : V.length) > 1]]);
|
|
725
724
|
}
|
|
726
725
|
}));
|
|
727
726
|
},
|
|
@@ -1023,6 +1022,9 @@ a(R, "schemaPreset", {
|
|
|
1023
1022
|
},
|
|
1024
1023
|
grid: {
|
|
1025
1024
|
default: void 0
|
|
1025
|
+
},
|
|
1026
|
+
runtime: {
|
|
1027
|
+
default: void 0
|
|
1026
1028
|
}
|
|
1027
1029
|
}), a(R, "componentPropsPreset", {
|
|
1028
1030
|
options: {
|