ant-design/components/form/index.jsx

21 lines
401 B
React
Raw Normal View History

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';
import createDOMForm from 'rc-form/lib/createDOMForm';
2015-10-09 13:53:04 +08:00
2016-01-28 21:43:45 +08:00
Form.create = (o = {}) => {
const options = {
...o,
fieldNameProp: 'id',
fieldMetaProp: '__meta',
};
return createDOMForm(options);
2016-01-28 21:43:45 +08:00
};
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
export default Form;