@harbor-design/proform 1.2.1 → 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
|
@@ -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.
|
|
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
|
-
|
|
100
|
+
customizeListItemLabel?: (rawLabel: string, rawIndex: number) => any;
|
|
101
101
|
}
|
|
102
102
|
export interface FormCustomization {
|
|
103
103
|
ui?: UIName;
|