Antd all selected example, why can't the getFieldDecorator method of form get the selected value value?

clipboard.png

clipboard.png

Jun.24,2022

well, it's not complicated

  <FormItem label="Cb">
          {form.getFieldDecorator("cbType")(
            <CheckboxGroup
              options={["Apple", "Pear", "Orange"]}
            />
          )}
  </FormItem>

get the form instance ref
and then get the value of the form through the getFieldsValue () method


1. Have you wrapped it with < FormItem >?
2. Form.create () (< component / >) for components;
3, this.props.form.getFieldsValue (function (values, err) {if (! err) {console.log (values)}})

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb7ea6-2698.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb7ea6-2698.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?