2015-10-09 13:53:04 +08:00
|
|
|
import Form from './Form';
|
|
|
|
import FormItem from './FormItem';
|
2015-10-25 11:34:31 +08:00
|
|
|
import ValueMixin from './ValueMixin';
|
2015-11-20 18:51:12 +08:00
|
|
|
import Input from '../input';
|
2016-01-22 14:31:08 +08:00
|
|
|
import { createForm } from 'rc-form';
|
2015-10-09 13:53:04 +08:00
|
|
|
|
2016-01-22 14:31:08 +08:00
|
|
|
Form.create = createForm;
|
2015-10-09 13:53:04 +08:00
|
|
|
Form.Item = FormItem;
|
2016-01-22 14:31:08 +08:00
|
|
|
|
|
|
|
// @Deprecated
|
2015-10-25 11:34:31 +08:00
|
|
|
Form.ValueMixin = ValueMixin;
|
2015-11-20 18:51:12 +08:00
|
|
|
|
|
|
|
// 对于 import { Form, Input } from 'antd/lib/form/';
|
|
|
|
// 的方式做向下兼容
|
|
|
|
// https://github.com/ant-design/ant-design/pull/566
|
|
|
|
Form.Form = Form;
|
|
|
|
Form.Input = Input;
|
|
|
|
|
2015-11-20 18:21:59 +08:00
|
|
|
export default Form;
|