@harbor-design/proform 1.2.21 → 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
@@ -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 F = i.parseStable(f.stable), E = s == null ? void 0 : s.index, I = s == null ? void 0 : s.key;
335
- let b = F;
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[E][I][c][d];
338
- m && l.isObject(m) && d !== "component" && (b = h(m, b)), i.processedSchemas.value[E][I][c][d] = b, i.stableUpdater(o);
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, F = e.componentProps ?? {}, E = C.placeholderPresetByComponentName;
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
- const V = (i == null ? void 0 : i.runtime) ?? this.runtime;
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 */ E[y.toLowerCase()] ? (w = // @ts-expect-error
637
- E[y.toLowerCase()], I = `${w}${m}`) : (Object.keys(E).forEach((te) => {
638
- y.toLowerCase().includes(te.toLowerCase()) && (w = E[te]);
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: F
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 F;
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, ((F = s.model.value[e.field]) == null ? void 0 : F.length) > 1]]);
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: {
@@ -59,6 +59,7 @@ export interface ItemSchema {
59
59
  show?: boolean;
60
60
  required?: boolean;
61
61
  placeholder?: string;
62
+ runtime?: Runtime;
62
63
  native?: NativeCustomizationOptions;
63
64
  grid?: GridStyle;
64
65
  label?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.2.21",
3
+ "version": "1.2.22",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",