ant-design/components/form/index.jsx
yiminghe c667144943 fix form warning
Conflicts:
	components/cascader/index.jsx
	components/form/index.jsx
2016-07-07 17:23:51 +08:00

22 lines
455 B
JavaScript

import Form from './Form';
import FormItem from './FormItem';
import ValueMixin from './ValueMixin';
import createDOMForm from 'rc-form/lib/createDOMForm';
import { FIELD_META_PROP } from './constants';
Form.create = (o = {}) => {
const options = {
...o,
fieldNameProp: 'id',
fieldMetaProp: FIELD_META_PROP,
};
return createDOMForm(options);
};
Form.Item = FormItem;
// @Deprecated
Form.ValueMixin = ValueMixin;
export default Form;