Commit daa32541 authored by wangailin's avatar wangailin
Browse files

fix: 修复数值比较验证为 0 的判断逻辑

Showing with 1 addition and 1 deletion
+1 -1
......@@ -71,7 +71,7 @@ export default class NumberField extends Field<NumberFieldConfig, INumberField,
}
}
if (value) {
if (typeof value === 'number') {
if (min !== undefined && min !== '' && value < min) {
errors.push(new FieldError(`值不能小于${min}`))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment