【文件属性】:
文件名称:react-baby-form:易于使用的表格
文件大小:346KB
文件格式:ZIP
更新时间:2021-05-06 09:45:44
react form JavaScript
React婴儿形式
易于使用的表格。
基于Antd设计的。
安装
npm install --save react-baby-form
用法
import React , { Component , createRef } from 'react' ;
import BabyForm , { submit } from 'react-baby-form' ;
class Base extends Components {
formRef = createRef ( ) ;
state = {
value : { } ,
}
onChangeForm = ( value ) => {
this . setState ( { value } ) ;
}
onClickSubmit = ( ) => {
submit ( this . formRe