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
17cc2c6a
Commit
17cc2c6a
authored
Sep 12, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update onValuesChange arguments name
parent
652fec4c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/pages/List/Applications.js
src/pages/List/Applications.js
+2
-2
src/pages/List/Articles.js
src/pages/List/Articles.js
+2
-2
src/pages/List/Projects.js
src/pages/List/Projects.js
+2
-2
No files found.
src/pages/List/Applications.js
View file @
17cc2c6a
...
@@ -17,10 +17,10 @@ const FormItem = Form.Item;
...
@@ -17,10 +17,10 @@ const FormItem = Form.Item;
loading
:
loading
.
models
.
list
,
loading
:
loading
.
models
.
list
,
}))
}))
@
Form
.
create
({
@
Form
.
create
({
onValuesChange
({
dispatch
},
v
alues
)
{
onValuesChange
({
dispatch
},
changedValues
,
allV
alues
)
{
// 表单项变化时请求数据
// 表单项变化时请求数据
// eslint-disable-next-line
// eslint-disable-next-line
console
.
log
(
v
alues
);
console
.
log
(
changedValues
,
allV
alues
);
// 模拟查询表单生效
// 模拟查询表单生效
dispatch
({
dispatch
({
type
:
'
list/fetch
'
,
type
:
'
list/fetch
'
,
...
...
src/pages/List/Articles.js
View file @
17cc2c6a
...
@@ -17,10 +17,10 @@ const pageSize = 5;
...
@@ -17,10 +17,10 @@ const pageSize = 5;
loading
:
loading
.
models
.
list
,
loading
:
loading
.
models
.
list
,
}))
}))
@
Form
.
create
({
@
Form
.
create
({
onValuesChange
({
dispatch
},
v
alues
)
{
onValuesChange
({
dispatch
},
changedValues
,
allV
alues
)
{
// 表单项变化时请求数据
// 表单项变化时请求数据
// eslint-disable-next-line
// eslint-disable-next-line
console
.
log
(
v
alues
);
console
.
log
(
changedValues
,
allV
alues
);
// 模拟查询表单生效
// 模拟查询表单生效
dispatch
({
dispatch
({
type
:
'
list/fetch
'
,
type
:
'
list/fetch
'
,
...
...
src/pages/List/Projects.js
View file @
17cc2c6a
...
@@ -20,10 +20,10 @@ const FormItem = Form.Item;
...
@@ -20,10 +20,10 @@ const FormItem = Form.Item;
loading
:
loading
.
models
.
list
,
loading
:
loading
.
models
.
list
,
}))
}))
@
Form
.
create
({
@
Form
.
create
({
onValuesChange
({
dispatch
},
v
alues
)
{
onValuesChange
({
dispatch
},
changedValues
,
allV
alues
)
{
// 表单项变化时请求数据
// 表单项变化时请求数据
// eslint-disable-next-line
// eslint-disable-next-line
console
.
log
(
v
alues
);
console
.
log
(
changedValues
,
allV
alues
);
// 模拟查询表单生效
// 模拟查询表单生效
dispatch
({
dispatch
({
type
:
'
list/fetch
'
,
type
:
'
list/fetch
'
,
...
...
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