Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
82fd0b8b
Commit
82fd0b8b
authored
Dec 03, 2018
by
zhang0ZGC
Committed by
陈帅
Dec 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix #2965 查询表格关闭配置Modal时没有渐隐效果 (#2980)
parent
b8d146ae
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
src/pages/List/TableList.js
src/pages/List/TableList.js
+13
-6
No files found.
src/pages/List/TableList.js
View file @
82fd0b8b
...
...
@@ -66,6 +66,12 @@ const CreateForm = Form.create()(props => {
@
Form
.
create
()
class
UpdateForm
extends
PureComponent
{
static
defaultProps
=
{
handleUpdate
:
()
=>
{},
handleUpdateModalVisible
:
()
=>
{},
values
:
{},
};
constructor
(
props
)
{
super
(
props
);
...
...
@@ -203,13 +209,13 @@ class UpdateForm extends PureComponent {
};
renderFooter
=
currentStep
=>
{
const
{
handleUpdateModalVisible
}
=
this
.
props
;
const
{
handleUpdateModalVisible
,
values
}
=
this
.
props
;
if
(
currentStep
===
1
)
{
return
[
<
Button
key
=
"
back
"
style
=
{{
float
:
'
left
'
}}
onClick
=
{
this
.
backward
}
>
上一步
<
/Button>
,
<
Button
key
=
"
cancel
"
onClick
=
{()
=>
handleUpdateModalVisible
()}
>
<
Button
key
=
"
cancel
"
onClick
=
{()
=>
handleUpdateModalVisible
(
false
,
values
)}
>
取消
<
/Button>
,
<
Button
key
=
"
forward
"
type
=
"
primary
"
onClick
=
{()
=>
this
.
handleNext
(
currentStep
)}
>
...
...
@@ -222,7 +228,7 @@ class UpdateForm extends PureComponent {
<
Button
key
=
"
back
"
style
=
{{
float
:
'
left
'
}}
onClick
=
{
this
.
backward
}
>
上一步
<
/Button>
,
<
Button
key
=
"
cancel
"
onClick
=
{()
=>
handleUpdateModalVisible
()}
>
<
Button
key
=
"
cancel
"
onClick
=
{()
=>
handleUpdateModalVisible
(
false
,
values
)}
>
取消
<
/Button>
,
<
Button
key
=
"
submit
"
type
=
"
primary
"
onClick
=
{()
=>
this
.
handleNext
(
currentStep
)}
>
...
...
@@ -231,7 +237,7 @@ class UpdateForm extends PureComponent {
];
}
return
[
<
Button
key
=
"
cancel
"
onClick
=
{()
=>
handleUpdateModalVisible
()}
>
<
Button
key
=
"
cancel
"
onClick
=
{()
=>
handleUpdateModalVisible
(
false
,
values
)}
>
取消
<
/Button>
,
<
Button
key
=
"
forward
"
type
=
"
primary
"
onClick
=
{()
=>
this
.
handleNext
(
currentStep
)}
>
...
...
@@ -241,7 +247,7 @@ class UpdateForm extends PureComponent {
};
render
()
{
const
{
updateModalVisible
,
handleUpdateModalVisible
}
=
this
.
props
;
const
{
updateModalVisible
,
handleUpdateModalVisible
,
values
}
=
this
.
props
;
const
{
currentStep
,
formVals
}
=
this
.
state
;
return
(
...
...
@@ -252,7 +258,8 @@ class UpdateForm extends PureComponent {
title
=
"
规则配置
"
visible
=
{
updateModalVisible
}
footer
=
{
this
.
renderFooter
(
currentStep
)}
onCancel
=
{()
=>
handleUpdateModalVisible
()}
onCancel
=
{()
=>
handleUpdateModalVisible
(
false
,
values
)}
afterClose
=
{()
=>
handleUpdateModalVisible
()}
>
<
Steps
style
=
{{
marginBottom
:
28
}}
size
=
"
small
"
current
=
{
currentStep
}
>
<
Step
title
=
"
基本信息
"
/>
...
...
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