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
c916848b
Commit
c916848b
authored
Jul 23, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch1.0.1' into dev
parents
45c158dd
6dd4c168
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
index.tsx
components/apolloTable/editFormV3/index.tsx
+14
-3
No files found.
components/apolloTable/editFormV3/index.tsx
View file @
c916848b
...
...
@@ -32,7 +32,9 @@ class FormWrap extends Component {
handleSubmit
=
(
e
)
=>
{
e
.
preventDefault
();
e
.
stopPropagation
();
const
{
rowId
,
form
,
handleSubmit
,
data
,
rowData
,
detailType
}
=
this
.
props
;
const
{
rowId
,
form
,
handleSubmit
,
data
,
rowData
,
detailType
,
}
=
this
.
props
;
form
.
validateFieldsAndScroll
((
err
,
values
)
=>
{
if
(
!
err
)
{
const
newValues
:
any
[]
=
[];
...
...
@@ -106,7 +108,14 @@ class FormWrap extends Component {
}
}
if
(
typeof
value
===
'object'
)
{
if
(
!
value
.
text
&&
value
.
text
!==
0
&&
!
value
.
value
&&
value
.
value
!==
0
)
{
if
(
!
value
.
label
&&
value
.
label
!==
0
&&
!
value
.
text
&&
value
.
text
!==
0
&&
!
value
.
value
&&
value
.
value
!==
0
)
{
return
callback
(
'必填项不能为空'
);
}
}
...
...
@@ -209,7 +218,9 @@ class FormWrap extends Component {
};
render
()
{
const
{
loading
,
isShowDelBtn
,
data
,
btnWrapStyle
,
name
,
colsNum
,
delLabel
,
hideOperateBtn
}
=
this
.
props
;
const
{
loading
,
isShowDelBtn
,
data
,
btnWrapStyle
,
name
,
colsNum
,
delLabel
,
hideOperateBtn
,
}
=
this
.
props
;
return
(
<
Provider
value=
{
{
locale
:
this
.
getContext
()
}
}
>
...
...
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