mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-11 23:25:33 +08:00
chore(useFormEvents): 消除checkIsRangeSlider 校验类型错误
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user