1
0
mirror of synced 2026-04-05 07:48:35 +08:00

style(form): 完善filterFunction类型定义

This commit is contained in:
roymondchen
2023-11-21 11:37:38 +08:00
parent ab02c2f3ee
commit ad008b66b4
2 changed files with 10 additions and 10 deletions

View File

@@ -181,7 +181,7 @@ const getDefaultValue = function (mForm: FormState | undefined, { defaultValue,
return '';
};
export const filterFunction = (mForm: FormState | undefined, config: any, props: any) => {
export const filterFunction = <T = any>(mForm: FormState | undefined, config: T, props: any) => {
if (typeof config !== 'function') {
return config;
}