mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
21 lines
401 B
JavaScript
21 lines
401 B
JavaScript
import Form from './Form';
|
|
import FormItem from './FormItem';
|
|
import ValueMixin from './ValueMixin';
|
|
import createDOMForm from 'rc-form/lib/createDOMForm';
|
|
|
|
Form.create = (o = {}) => {
|
|
const options = {
|
|
...o,
|
|
fieldNameProp: 'id',
|
|
fieldMetaProp: '__meta',
|
|
};
|
|
|
|
return createDOMForm(options);
|
|
};
|
|
Form.Item = FormItem;
|
|
|
|
// @Deprecated
|
|
Form.ValueMixin = ValueMixin;
|
|
|
|
export default Form;
|