chore(useFormEvents): 消除checkIsRangeSlider 校验类型错误
This commit is contained in:
parent
49d40d685d
commit
e25af8dd8c
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue