mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-29 20:08:37 +08:00
20 lines
441 B
TypeScript
20 lines
441 B
TypeScript
import Form from './Form';
|
|
import FormItem from './FormItem';
|
|
import ValueMixin from './ValueMixin';
|
|
import createDOMForm from 'rc-form/lib/createDOMForm';
|
|
import assign from 'object-assign';
|
|
Form.create = (o = {}) => {
|
|
const options = assign({}, o, {
|
|
fieldNameProp: 'id',
|
|
fieldMetaProp: '__meta',
|
|
});
|
|
|
|
return createDOMForm(options);
|
|
};
|
|
Form.Item = FormItem;
|
|
|
|
// @Deprecated
|
|
Form.ValueMixin = ValueMixin;
|
|
|
|
export default Form;
|