Skip to content

Commit e25af8d

Browse files
committed
chore(useFormEvents): 消除checkIsRangeSlider 校验类型错误
1 parent 49d40d6 commit e25af8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Form/src/hooks/useFormEvents.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ function getDefaultValue(
419419
}
420420

421421
function checkIsRangeSlider(schema: FormSchema) {
422-
if (schema.component === 'Slider' && schema.componentProps && schema.componentProps.range) {
422+
if (schema.component === 'Slider' && schema.componentProps && 'range' in schema.componentProps) {
423423
return true;
424424
}
425425
}

0 commit comments

Comments
 (0)