Browse Source

fix: 注册页面,为体型更改组件,从文本框修改为下拉框,
fixes #15

sw 1 week ago
parent
commit
6b06e10f7c
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/pages/patient/components/register.form.tsx

+ 8 - 2
src/pages/patient/components/register.form.tsx

@@ -139,13 +139,19 @@ const BasicInfoForm: React.FC<BasicInfoFormProps> = ({ style, form }) => {
         required={registerFormFields.patient_size.required}
         validateTrigger={registerFormFields.patient_size.trigger}
         rules={registerFormFields.patient_size.validation}
+        initialValue="Medium"
       >
-        <Input
+        <Select
           placeholder={intl.formatMessage({
             id: 'register.patientSize.placeholder',
             defaultMessage: 'register.patientSize.placeholder',
           })}
-        />
+          defaultValue="Medium"
+        >
+          <Select.Option value="Large">Large</Select.Option>
+          <Select.Option value="Medium">Medium</Select.Option>
+          <Select.Option value="Small">Small</Select.Option>
+        </Select>
       </Form.Item>
       <Form.Item
         label={