You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
607 B

import Form from './Form';
import FormItem from './FormItem';
9 years ago
import ValueMixin from './ValueMixin';
import Input from '../input';
import createDOMForm from 'rc-form/lib/createDOMForm';
9 years ago
Form.create = (o = {}) => {
const options = {
...o,
fieldNameProp: 'id',
fieldMetaProp: '__meta',
};
return createDOMForm(options);
9 years ago
};
Form.Item = FormItem;
// @Deprecated
9 years ago
Form.ValueMixin = ValueMixin;
// 对于 import { Form, Input } from 'antd/lib/form/';
// 的方式做向下兼容
// https://github.com/ant-design/ant-design/pull/566
Form.Form = Form;
Form.Input = Input;
export default Form;