Skip to content

Commit

Permalink
perf(form->util): duplicate judge (#3865)
Browse files Browse the repository at this point in the history
  • Loading branch information
electroluxcode committed May 23, 2024
1 parent e69dd1e commit dcba0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit dcba0ca

Please sign in to comment.