@arim-aisdc/public-components 2.3.2 → 2.3.3
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.
|
@@ -17,7 +17,7 @@ export declare const foramtBaseInfoField: (data: any, dataField: BaseInfoFieldTy
|
|
|
17
17
|
value: any;
|
|
18
18
|
field: string;
|
|
19
19
|
label?: string;
|
|
20
|
-
text: string |
|
|
20
|
+
text: string | Element | JSX.Element;
|
|
21
21
|
units?: string;
|
|
22
22
|
width?: string;
|
|
23
23
|
labelWidth?: string;
|
|
@@ -351,7 +351,8 @@ var QueryFilter = function QueryFilter(_ref, ref) {
|
|
|
351
351
|
}),
|
|
352
352
|
placeholder: item.inputTips,
|
|
353
353
|
allowClear: item === null || item === void 0 ? void 0 : item.allowClear,
|
|
354
|
-
presets: item === null || item === void 0 ? void 0 : item.presets
|
|
354
|
+
presets: item === null || item === void 0 ? void 0 : item.presets,
|
|
355
|
+
picker: item === null || item === void 0 ? void 0 : item.picker
|
|
355
356
|
});
|
|
356
357
|
break;
|
|
357
358
|
case FormItemType.DateRang:
|
|
@@ -12,5 +12,5 @@ type TranslateOptions = {
|
|
|
12
12
|
labelKey: string;
|
|
13
13
|
groupPrefix?: string;
|
|
14
14
|
};
|
|
15
|
-
export declare const useTranslation: (locales?: Record<string, Omit<Locale, 'locale' extends keyof Locale ? never : 'locale'>>) => [LocaleFunction, getLocaleCode: string
|
|
15
|
+
export declare const useTranslation: (locales?: Record<string, Omit<Locale, 'locale' extends keyof Locale ? never : 'locale'>>) => [LocaleFunction, getLocaleCode: string];
|
|
16
16
|
export {};
|
|
@@ -188,8 +188,5 @@ export var useTranslation = function useTranslation(locales) {
|
|
|
188
188
|
// return localeCode ?? defaultLocaleData.locale; // 提供默认值
|
|
189
189
|
return localeCode;
|
|
190
190
|
}, [fullLocale]);
|
|
191
|
-
|
|
192
|
-
return fullLocale.switchLocale;
|
|
193
|
-
}, [fullLocale]);
|
|
194
|
-
return [enhancedLocaleFunction, getLocaleCode, switchLocale];
|
|
191
|
+
return [enhancedLocaleFunction, getLocaleCode];
|
|
195
192
|
};
|