From 17cc2c6a18c871ce5951c3b2c561b1d1cd2b47eb Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 12 Sep 2018 21:54:58 +0800 Subject: [PATCH] update onValuesChange arguments name --- src/pages/List/Applications.js | 4 ++-- src/pages/List/Articles.js | 4 ++-- src/pages/List/Projects.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/List/Applications.js b/src/pages/List/Applications.js index 7b317d9a..bd28fb9e 100644 --- a/src/pages/List/Applications.js +++ b/src/pages/List/Applications.js @@ -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', diff --git a/src/pages/List/Articles.js b/src/pages/List/Articles.js index fdf4902b..4d7cd011 100644 --- a/src/pages/List/Articles.js +++ b/src/pages/List/Articles.js @@ -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', diff --git a/src/pages/List/Projects.js b/src/pages/List/Projects.js index 9bffa57e..9c62ef16 100644 --- a/src/pages/List/Projects.js +++ b/src/pages/List/Projects.js @@ -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', -- GitLab