chore: typo

This commit is contained in:
Vben
2021-04-13 21:42:10 +08:00
parent 6dd7d0f928
commit c9089c3243
11 changed files with 106 additions and 31 deletions

View File

@@ -42,7 +42,7 @@ export function setComponentRuleType(rule: ValidationRule, component: ComponentT
}
}
export function handleInputNumberValue(component?: ComponentType, val: any) {
export function handleInputNumberValue(component?: ComponentType, val?: any) {
if (!component) return val;
if (['Input', 'InputPassword', 'InputSearch', 'InputTextArea'].includes(component)) {
return val && isNumber(val) ? `${val}` : val;