Commit 17cc2c6a authored by afc163's avatar afc163

update onValuesChange arguments name

parent 652fec4c
......@@ -17,10 +17,10 @@ const FormItem = Form.Item;
loading: loading.models.list,
}))
@Form.create({
onValuesChange({ dispatch }, values) {
onValuesChange({ dispatch }, changedValues, allValues) {
// 表单项变化时请求数据
// eslint-disable-next-line
console.log(values);
console.log(changedValues, allValues);
// 模拟查询表单生效
dispatch({
type: 'list/fetch',
......
......@@ -17,10 +17,10 @@ const pageSize = 5;
loading: loading.models.list,
}))
@Form.create({
onValuesChange({ dispatch }, values) {
onValuesChange({ dispatch }, changedValues, allValues) {
// 表单项变化时请求数据
// eslint-disable-next-line
console.log(values);
console.log(changedValues, allValues);
// 模拟查询表单生效
dispatch({
type: 'list/fetch',
......
......@@ -20,10 +20,10 @@ const FormItem = Form.Item;
loading: loading.models.list,
}))
@Form.create({
onValuesChange({ dispatch }, values) {
onValuesChange({ dispatch }, changedValues, allValues) {
// 表单项变化时请求数据
// eslint-disable-next-line
console.log(values);
console.log(changedValues, allValues);
// 模拟查询表单生效
dispatch({
type: 'list/fetch',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment