Warning: [antd: Switch] `value` is not a valid prop, do you mean `checked`?_解决方案

解决方案:

<Form.Item label="更多设置" name="moreSetting" valuePropName="checked">
              <Switch onChange={handleMoreSetting} />
            </Form.Item>

Warning: [antd: Switch] `value` is not a valid prop, do you mean `checked`?_java_02