@harbor-design/proform 1.2.0 → 1.2.2

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
@@ -169,7 +169,7 @@ class fe {
169
169
  ) : h(this.runtimeCore.model.value, e);
170
170
  },
171
171
  {
172
- lazy: !0
172
+ lazy: !1
173
173
  }
174
174
  );
175
175
  }
@@ -594,7 +594,7 @@ class me {
594
594
  y === void 0 && (y = !0), y || delete s[e.field];
595
595
  let m = e.label ?? "";
596
596
  const V = (i == null ? void 0 : i.runtime) ?? this.runtime;
597
- if (!l.isUndefined(t) && !l.isObjectEmpty(V) && (m = L((X = V == null ? void 0 : V.customizeItemLabel) == null ? void 0 : X.call(V, e.label ?? "", t + 1), "")), !g) {
597
+ if (!l.isUndefined(t) && !l.isObjectEmpty(V) && (m = L((X = V == null ? void 0 : V.customizeListItemLabel) == null ? void 0 : X.call(V, e.label ?? "", t + 1), "")), !g) {
598
598
  let S = "请输入";
599
599
  l.isUndefined(v) ? g = `${S}${m}` : /* @ts-expect-error */ I[v.toLowerCase()] ? (S = // @ts-expect-error
600
600
  I[v.toLowerCase()], g = `${S}${m}`) : (Object.keys(I).forEach((Y) => {
@@ -97,7 +97,7 @@ export type ProFormProxy<T> = {
97
97
  };
98
98
  export type ProxyedSchema = ProFormProxy<ItemSchema | GroupSchema | ListSchema>;
99
99
  export interface Runtime {
100
- customizeItemLabel?: (rawLabel: string, rawIndex: number) => any;
100
+ customizeListItemLabel?: (rawLabel: string, rawIndex: number) => any;
101
101
  }
102
102
  export interface FormCustomization {
103
103
  ui?: UIName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbor-design/proform",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",