fix: allow override fileNameProp, close: #3497

This commit is contained in:
Benjy Cui 2016-10-20 11:28:05 +08:00
parent 2482b4b760
commit 3c99097bc8

View File

@ -103,8 +103,9 @@ export default class Form extends React.Component<FormProps, any> {
static Item = FormItem;
static create = (options?: FormCreateOption): ComponentDecorator => {
const formWrapper = createDOMForm(assign({}, options, {
const formWrapper = createDOMForm(assign({
fieldNameProp: 'id',
}, options, {
fieldMetaProp: FIELD_META_PROP,
}));