UNPKG

@ttk/component

Version:

ttk组件库

24 lines (20 loc) 492 B
import React from 'react' import { Form } from 'antd' import classNames from 'classnames' // import FormItem from './formItem' function FormComponent(props) { let className = classNames({ 'mk-form': true, [props.className]: !!props.className }) return ( <Form {...props} className={className} /> ) } FormComponent.Item = Form.Item FormComponent.create = Form.create FormComponent.createFormField = Form.createFormField export default FormComponent