From cc897c1684b076e0f587bf0420911495a7c0a3e7 Mon Sep 17 00:00:00 2001 From: monkindey Date: Sun, 4 Aug 2019 16:32:10 +0800 Subject: [PATCH 1/2] chore(docs): UFrom --> UForm --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 03654a685f2..64d1980f4ec 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ English | [简体中文](./README.zh-cn.md)

-

UFrom - a high-performance React form solution for handling complicated enterprise requirements.

+

UForm - a high-performance React form solution for handling complicated enterprise requirements.

--- From cd945b8ac20c035675181aa8191f717e5daab172 Mon Sep 17 00:00:00 2001 From: monkindey Date: Mon, 19 Aug 2019 13:20:02 +0800 Subject: [PATCH 2/2] fix: remove react unstable concurrent --- docs/Examples/antd/Actions.md | 20 ++++++++++---------- docs/Examples/next/Actions.md | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/docs/Examples/antd/Actions.md b/docs/Examples/antd/Actions.md index 2e24e3b3e1c..7428badea70 100644 --- a/docs/Examples/antd/Actions.md +++ b/docs/Examples/antd/Actions.md @@ -33,7 +33,8 @@ import 'antd/dist/antd.css' const actions = createFormActions() -actions.setFieldState('aa', state => { //同步调用会出错 +actions.setFieldState('aa', state => { + //同步调用会出错 state.value = '123' }) actions.submit() //同步调用会出错 @@ -48,24 +49,23 @@ const App = () => ( > - + }} + > + 修改AA的值并提交表单 + ) -console.log(React.unstable_ConcurrentMode) -ReactDOM.render( - - - , - document.getElementById('root') -) + +ReactDOM.render(, document.getElementById('root')) ``` ### 使用 createAsyncFormActions 做通讯 diff --git a/docs/Examples/next/Actions.md b/docs/Examples/next/Actions.md index ee92e25bf02..e16b4a01a66 100644 --- a/docs/Examples/next/Actions.md +++ b/docs/Examples/next/Actions.md @@ -33,7 +33,8 @@ import '@alifd/next/dist/next.css' const actions = createFormActions() -actions.setFieldState('aa', state => { //同步调用会出错 +actions.setFieldState('aa', state => { + //同步调用会出错 state.value = '123' }) actions.submit() //同步调用会出错 @@ -48,24 +49,23 @@ const App = () => ( > - + }} + > + 修改AA的值并提交表单 + ) -console.log(React.unstable_ConcurrentMode) -ReactDOM.render( - - - , - document.getElementById('root') -) + +ReactDOM.render(, document.getElementById('root')) ``` ### 使用 createAsyncFormActions 做通讯