._react form.item表单取值">
当前位置:   article > 正文

react 一个Form.Item获取和写入两个值_react form.item表单取值

react form.item表单取值

效果:

 代码:

  1. <Form.Item label="分辨率" style={{ marginBottom: 0 }} >
  2. <Form.Item name="resolutionsMW" style={{ display: 'inline-block', width:
  3. 'calc(50% - 12px)' }}
  4. rules={[{ required: true, message: '' }]}>
  5. <Input placeholder="宽" autoComplete="off" />
  6. </Form.Item>
  7. <span
  8. style={{ display: 'inline-block', width: '24px', lineHeight: '32px', textAlign:
  9. 'center' }}
  10. >
  11. X
  12. </span>
  13. <Form.Item name="resolutionsMH" style={{ display: 'inline-block', width:
  14. 'calc(50% - 12px)' }}
  15. rules={[{ required: true, message: '' }]}>
  16. <Input placeholder="高" autoComplete="off" />
  17. </Form.Item>
  18. </Form.Item>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/115608
推荐阅读
相关标签