Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
84db6afe
Commit
84db6afe
authored
Jan 07, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复外部定义了message给覆盖的问题
parent
59755016
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.tsx
src/components/NiceForm/index.tsx
+4
-4
No files found.
src/components/NiceForm/index.tsx
View file @
84db6afe
...
...
@@ -81,12 +81,12 @@ registerValidationRules({
return
str
.
length
>
maxByte
?
message
:
""
;
},
required
:
(
value
,
desc
,
rules
)
=>
{
const
{
required
}
=
desc
;
let
m
essage
=
``
const
{
required
,
message
}
=
desc
;
let
m
sg
=
''
;
if
(
required
)
{
m
essage
+=
`
${
intl
.
formatMessage
({
id
:
'common.bitian'
})}
`
m
sg
=
message
||
`
${
intl
.
formatMessage
({
id
:
'common.bitian'
})}
`
;
}
return
(
required
&&
!
isFieldLegal
(
value
))
?
m
essage
:
''
return
(
required
&&
!
isFieldLegal
(
value
))
?
m
sg
:
''
}
});
...
...
Write
Preview
Markdown
is supported
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