Electrolux
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/components/Form/src/helper.ts
|
|
|
@ -45,7 +45,7 @@ export function setComponentRuleType( |
|
|
|
} |
|
|
|
if (['DatePicker', 'MonthPicker', 'WeekPicker', 'TimePicker'].includes(component)) { |
|
|
|
rule.type = valueFormat ? 'string' : 'object'; |
|
|
|
} else if (['RangePicker', 'Upload', 'CheckboxGroup', 'TimePicker'].includes(component)) { |
|
|
|
} else if (['RangePicker', 'Upload', 'CheckboxGroup'].includes(component)) { |
|
|
|
rule.type = 'array'; |
|
|
|
} else if (['InputNumber'].includes(component)) { |
|
|
|
rule.type = 'number'; |
|
|
|
|