chore(useFormEvents): 消除checkIsRangeSlider 校验类型错误

This commit is contained in:
invalid w 2023-10-09 11:37:59 +08:00
parent 49d40d685d
commit e25af8dd8c

View File

@ -419,7 +419,7 @@ function getDefaultValue(
}
function checkIsRangeSlider(schema: FormSchema) {
if (schema.component === 'Slider' && schema.componentProps && schema.componentProps.range) {
if (schema.component === 'Slider' && schema.componentProps && 'range' in schema.componentProps) {
return true;
}
}