1. 程式人生 > >react antd form元件的使用

react antd form元件的使用

import { Form } from 'antd'

class add extends Component{

    render(){

        const { getFieldDecorator } = this.props.form

        return(

            <div>

                <Form><FormItem></FormItem><Form>

            </div>

        )

    }

}

const for_form = Form.creat()(add)

export default for_form