Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaojuan huang
Ccms
Commits
daa32541
Commit
daa32541
authored
3 years ago
by
wangailin
Browse files
Options
Download
Email Patches
Plain Diff
fix: 修复数值比较验证为 0 的判断逻辑
parent
c4624848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/formFields/number/index.tsx
+1
-1
src/components/formFields/number/index.tsx
with
1 addition
and
1 deletion
+1
-1
src/components/formFields/number/index.tsx
+
1
-
1
View file @
daa32541
...
@@ -71,7 +71,7 @@ export default class NumberField extends Field<NumberFieldConfig, INumberField,
...
@@ -71,7 +71,7 @@ export default class NumberField extends Field<NumberFieldConfig, INumberField,
}
}
}
}
if
(
value
)
{
if
(
typeof
value
===
'
number
'
)
{
if
(
min
!==
undefined
&&
min
!==
''
&&
value
<
min
)
{
if
(
min
!==
undefined
&&
min
!==
''
&&
value
<
min
)
{
errors
.
push
(
new
FieldError
(
`值不能小于
${
min
}
`
))
errors
.
push
(
new
FieldError
(
`值不能小于
${
min
}
`
))
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help