<Form.Item label="自定义扎号" name="isAuto" rules={[{ required: true, message: "请输入是否打码" }]} > <Radio.Group onChange={changeVal}> <Radio value={0}>是</Radio> <Radio value={1}>否</Radio> </Radio.Group> </Form.Item>
e.target.value获取值
const changeVal = (e: any) => { setRadioData(e.target.value) }