form
form copied to clipboard
React High Order Form Component(web & react-native)
$form.createForm(context, option) 中的 option.validateMessages 对象中的字符串模板只有 %s 吗 [https://github.com/yiminghe/async-validator/blob/master/src/messages.js]() 如果可以使用字符串模板取得label 的值将会更好,因为现在只有 %s 所以在统一配置没法说明这个label 有的只是 decorator 的id 而id一般是变量名(英文的)
I want to use ref to get instance of EnhancedForm. It could be use validateFields and so on methods easily. But I get a warning ``` Warning: you should not...
I see #156 and #148 . But how can I control my redux action fire only once when onFieldsChange fire twice
webpack打包运行之后,表单验证或者表单提交验证时报错Uncaught TypeError:_asyncValidator2.default is not constructor 
有这样一个场景: 假设我要创建一个 [自定义表单控件](https://ant.design/components/form-cn/#components-form-demo-customized-form-controls) ,这个自定义表单控件是利用 `Form` 组件创建的,那在使用这个自定义表单控件时,无法避免``标签嵌套,浏览器报错: ``` Warning: validateDOMNesting(...): cannot appear as a descendant of . ``` 所以能否提供一个参数设置`Form`的顶级容器由什么元素渲染,比如: ``` ``` 实际节点应当是 ``` ``` 在复杂表单场景中,一个自定义表单控件也是非常复杂的,借用 `Form` 组件创建自定义表单控件是一个常见的场景。

From `native input` or `setFieldsValue`?
Starting from 1.11.3 async-validator supports new option called suppressWarning. In current implementation of `onCollectValidate` inside [createBaseForm.js](https://github.com/react-component/form/blob/65013f9b69da09466caf31f23d2431ef3ecb8bac/src/createBaseForm.js) this new property is not passed to the `validateFieldsInternal`.
I use the example of the react-native. After add validateTrigger, the value always to be empty, when the TextInput blur. "react": "^16.2.0", "react-native": "0.53.3", "rc-form": "^2.1.7", ``` javascript {getFieldDecorator('username', {...
In method `validateFieldsInternal`(https://github.com/react-component/form/blob/master/src/createBaseForm.js#L498), I saw a `eq` function to avoid concurrency problems. In my case, I use Redux && `mapPropsToFields`, and have some `object-like` field values, so it 'll always...