From c84186d38103b3ef18b389700c51336879ed5758 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 08 三月 2024 16:48:01 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/locales/en-US/map.ts | 1
zy-asrs-flow/src/pages/map/components/settings.jsx | 142 +++++++++++++++++++++++++++++++++--------------
2 files changed, 101 insertions(+), 42 deletions(-)
diff --git a/zy-asrs-flow/src/locales/en-US/map.ts b/zy-asrs-flow/src/locales/en-US/map.ts
index 0609382..c9c05d1 100644
--- a/zy-asrs-flow/src/locales/en-US/map.ts
+++ b/zy-asrs-flow/src/locales/en-US/map.ts
@@ -16,6 +16,7 @@
'map.settings.position': 'Position',
'map.settings.scale': 'Scale',
'map.settings.rotation': 'Rotation',
+ 'map.settings.copy': 'Copy',
'': '',
'': '',
'': '',
diff --git a/zy-asrs-flow/src/pages/map/components/settings.jsx b/zy-asrs-flow/src/pages/map/components/settings.jsx
index 39d30d5..919151c 100644
--- a/zy-asrs-flow/src/pages/map/components/settings.jsx
+++ b/zy-asrs-flow/src/pages/map/components/settings.jsx
@@ -138,54 +138,63 @@
{/* */}
<Col span={24}>
- <Form.Item
- label={intl.formatMessage({ id: 'map.settings.type', defaultMessage: '绫诲瀷' })}
- labelCol={{ span: 2 }}
- >
- <span className="ant-form-text">China</span>
- </Form.Item>
+ <Row gutter={24}>
+ <Col span={18}>
+ <Form.Item
+ label={intl.formatMessage({ id: 'map.settings.type', defaultMessage: '绫诲瀷' })}
+ labelCol={{ span: 4 }}
+ >
+ <span className="ant-form-text">China</span>
+ </Form.Item>
+ </Col>
+ </Row>
</Col>
{/* position */}
<Col span={24}>
- <Form.Item
- label={intl.formatMessage({ id: 'map.settings.position', defaultMessage: '鍧愭爣' })}
- >
- <Space.Compact>
+ <Row gutter={24}>
+ <Col span={18}>
<Form.Item
- name='x'
- noStyle
- rules={[
- {
- required: true,
- },
- ]}
+ label={intl.formatMessage({ id: 'map.settings.position', defaultMessage: '鍧愭爣' })}
+ labelCol={{ span: 4 }}
>
- <InputNumber
- addonBefore={<Space.Compact>x</Space.Compact>}
- style={{
- width: '50%',
- }}
- />
+ <Space.Compact>
+ <Form.Item
+ name='x'
+ noStyle
+ rules={[
+ {
+ required: true,
+ },
+ ]}
+ >
+ <InputNumber
+ addonBefore={<Space.Compact>x</Space.Compact>}
+ style={{
+ width: '50%',
+ }}
+ />
+ </Form.Item>
+ <Form.Item
+ name='y'
+ noStyle
+ rules={[
+ {
+ required: true,
+ },
+ ]}
+ >
+ <InputNumber
+ addonBefore={<Space.Compact>y</Space.Compact>}
+ style={{
+ width: '50%',
+ }}
+ />
+ </Form.Item>
+ </Space.Compact>
</Form.Item>
- <Form.Item
- name='y'
- noStyle
- rules={[
- {
- required: true,
- },
- ]}
- >
- <InputNumber
- addonBefore={<Space.Compact>y</Space.Compact>}
- style={{
- width: '50%',
- }}
- />
- </Form.Item>
- </Space.Compact>
- </Form.Item>
+ </Col>
+ </Row>
</Col>
{/* scale */}
@@ -265,6 +274,55 @@
},
]}
/>
+ </Form.Item>
+ </Col>
+ </Row>
+ </Col>
+
+ {/* 澶嶅埗 */}
+ <Col span={24}>
+ <Row gutter={24}>
+ <Col span={18}>
+ <Form.Item
+ label={intl.formatMessage({ id: 'map.settings.copy', defaultMessage: '澶嶅埗' })}
+ labelCol={{ span: 4 }}
+ >
+ <Space.Compact>
+ <Form.Item
+ name="copyDire"
+ >
+ <Select
+ defaultValue="left"
+ style={{ width: 80 }}
+ options={[
+ { value: 'left', label: '宸�' },
+ { value: 'right', label: '鍙�' },
+ { value: 'top', label: '涓�' },
+ { value: 'bottom', label: '涓�' },
+ ]}
+ />
+ </Form.Item>
+ <Form.Item
+ name='copyCount'
+ noStyle
+ rules={[
+ {
+ required: true,
+ },
+ ]}
+ >
+ <InputNumber
+ addonBefore={<Space.Compact></Space.Compact>}
+ style={{
+ width: '50%',
+ }}
+ min={1} defaultValue={1} step={1}
+ />
+ </Form.Item>
+ <Form.Item>
+ <Button>Start</Button>
+ </Form.Item>
+ </Space.Compact>
</Form.Item>
</Col>
</Row>
@@ -362,7 +420,7 @@
</Row>
</Form>
- </Drawer>
+ </Drawer >
</>
)
}
--
Gitblit v1.9.1