Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
Project
Project
Details
Activity
Releases
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
web_component
submodule
Commits
8416fd59
Commit
8416fd59
authored
Jul 21, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revise 表单即时编辑校验
parent
9b643919
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
index.tsx
components/apolloTable/editFormV3/index.tsx
+2
-7
No files found.
components/apolloTable/editFormV3/index.tsx
View file @
8416fd59
...
...
@@ -92,7 +92,7 @@ class FormWrap extends Component {
};
renderEditForm
=
(
item
)
=>
{
const
{
getFieldDecorator
,
validateFieldsAndScroll
}
=
this
.
props
.
form
;
const
{
getFieldDecorator
}
=
this
.
props
.
form
;
const
{
rowData
,
rowId
,
getInstanceDetail
,
onBlurFn
}
=
this
.
props
;
const
{
columnType
,
...
...
@@ -135,12 +135,7 @@ class FormWrap extends Component {
if
(
_
.
isEqual
(
temp
,
newVal
))
{
return
;
}
validateFieldsAndScroll
((
err
:
any
)
=>
{
// 即时编辑时需要对表单必填等规则校验
if
(
!
err
)
{
onBlurFn
(
changedValue
);
}
});
onBlurFn
(
changedValue
);
}
};
return
(
...
...
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