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
master
add-color
add-color-detail
add-detail
add-detail-explain
add-table-explain
dev-detail-table
dev-detail-table-beta
dev-isv-detail-enum
dev-isv-detail-table
dev-isv-detail-text
dev-rollup
dev-treeselect
dev-xc
dev_await
dev_detail_custom
dev_detail_import
dev_detail_v1
dev_form_actions
dev_form_submitvalidate
dev_form_validations
dev_immer
dev_isv
dev_isv_220408
dev_jt
dev_loadPageList
dev_performance
dev_redux
dev_scu
dev_scu-20220209
dev_table_rowoperations
form_width
v1.2.1
v1.2.2
v1.2.3
v1.2.4
v1.2.4-beta
v1.2.4_bak
v1.3.0
No related merge requests found
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,
}
}
if
(
value
)
{
if
(
typeof
value
===
'
number
'
)
{
if
(
min
!==
undefined
&&
min
!==
''
&&
value
<
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