$ cnpm install @uyun/lego-rjsf
快速表单生成器
封装了 @uyun/components 和 @rjsf/core。
yarn add @uyun/lego-rjsf
import { Form } from '@uyun/lego-rjsf'
const App = () => {
const schema: JSONSchema7 = {}
const handleChange = ({ formData }) => {}
const handleSubmit = ({ formData }) => {}
return <Form schema={schema} onChange={handleChange} onSubmit={handleSubmit} />
}
方法 | 说明 | 类型 |
---|---|---|
getFieldsValue() | 获取表单数据 | Function() |
Copyright 2013 - present © cnpmjs.org