| | |
| | | ProFormDateTimePicker, |
| | | ProFormTextArea, |
| | | ProFormSlider, |
| | | ProFormSwitch, |
| | | } from '@ant-design/pro-components'; |
| | | import moment from 'moment'; |
| | | import { Col, Form, Modal, Row, Checkbox, Image, Tree, Drawer, Space, Button, Card, Divider } from 'antd'; |
| | |
| | | </Space> |
| | | } |
| | | > |
| | | <Card> |
| | | |
| | | <ProForm |
| | | form={form} |
| | | submitter={false} |
| | | onFinish={handleFinish} |
| | | layout="horizontal" |
| | | grid={true} |
| | | onValuesChange={formValuesChange} |
| | | > |
| | | {/* |
| | | <ProForm |
| | | form={form} |
| | | submitter={false} |
| | | onFinish={handleFinish} |
| | | layout="horizontal" |
| | | grid={true} |
| | | onValuesChange={formValuesChange} |
| | | > |
| | | {/* |
| | | // position |
| | | // scale |
| | | // rotation |
| | | // copy |
| | | */} |
| | | <ProForm.Group> |
| | | <ProFormText |
| | | name="name" |
| | | label="名称" |
| | | colProps={{ md: 12, xl: 12 }} |
| | | /> |
| | | <ProFormDigit |
| | | label="InputNumber" |
| | | name="input-number" |
| | | min={1} |
| | | max={10} |
| | | colProps={{ md: 12, xl: 12 }} |
| | | /> |
| | | </ProForm.Group> |
| | | <ProForm.Group> |
| | | <ProFormSlider |
| | | name="slider" |
| | | label="Slider" |
| | | width="lg" |
| | | marks={{ |
| | | 0: 'A', |
| | | 20: 'B', |
| | | 40: 'C', |
| | | 60: 'D', |
| | | 80: 'E', |
| | | 100: 'F', |
| | | }} |
| | | /> |
| | | </ProForm.Group> |
| | | <ProForm.Group> |
| | | <ProFormTextArea |
| | | name="memo" |
| | | label="备注" |
| | | colProps={{ md: 24, xl: 24 }} |
| | | /> |
| | | </ProForm.Group> |
| | | </ProForm> |
| | | </Card> |
| | | <ProForm.Group> |
| | | <ProFormText |
| | | name="name" |
| | | label="名称" |
| | | colProps={{ md: 12, xl: 12 }} |
| | | /> |
| | | <ProFormDigit |
| | | label="InputNumber" |
| | | name="input-number" |
| | | min={1} |
| | | max={10} |
| | | colProps={{ md: 12, xl: 12 }} |
| | | /> |
| | | </ProForm.Group> |
| | | <ProForm.Group> |
| | | <ProFormSlider |
| | | name="slider" |
| | | label="Slider" |
| | | width="lg" |
| | | marks={{ |
| | | 0: 'A', |
| | | 20: 'B', |
| | | 40: 'C', |
| | | 60: 'D', |
| | | 80: 'E', |
| | | 100: 'F', |
| | | }} |
| | | colProps={{ md: 12, xl: 12 }} |
| | | /> |
| | | <ProFormSwitch |
| | | name="switch" |
| | | label="Switch" |
| | | colProps={{ md: 12, xl: 12 }} |
| | | /> |
| | | </ProForm.Group> |
| | | <ProForm.Group> |
| | | <ProFormTextArea |
| | | name="memo" |
| | | label="备注" |
| | | colProps={{ md: 24, xl: 24 }} |
| | | /> |
| | | </ProForm.Group> |
| | | </ProForm> |
| | | </Drawer> |
| | | </> |
| | | ) |