mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
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
Block a user