ant-design/components/form/index.jsx
2016-01-22 16:16:15 +08:00

20 lines
462 B
JavaScript

import Form from './Form';
import FormItem from './FormItem';
import ValueMixin from './ValueMixin';
import Input from '../input';
import { createForm } from 'rc-form';
Form.create = createForm;
Form.Item = FormItem;
// @Deprecated
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;