0.0.10 • Published 2 years ago
@sim-design/case-analysis v0.0.10
表单通用组件
快速开始
npm install @sim-design/case-analysis
参数
参数 | 说明 | 类型 |
---|---|---|
id | 表单id | number |
role | 角色数据 | object |
disabled | 禁用只读 | bool |
onOk | 提交回调 | props |
用法示例
import {useState,useRef} from 'react'
import SimForm from "@sim-design/form";
const Demo = (props) => {
const [showCorrect, setShowCorrect] = useState(false)
const formRef = useRef()
// 获取得分和提交记录
//const values = formRef?.current.getFieldsValue()
//const values = formRef?.current.getFormScore()
return <SimForm ref={formRef} formId="123123123" showCorrect={showCorrect} />
}