From cb64696a91e3e9b3a13e1ee8e8ec1aa753ff4322 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期三, 13 三月 2024 10:57:11 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/components/configSettings.jsx | 68 +++++++++++++++++++++++++++++++++
1 files changed, 67 insertions(+), 1 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/components/configSettings.jsx b/zy-asrs-flow/src/pages/map/components/configSettings.jsx
index fdc6e17..142cac9 100644
--- a/zy-asrs-flow/src/pages/map/components/configSettings.jsx
+++ b/zy-asrs-flow/src/pages/map/components/configSettings.jsx
@@ -15,11 +15,77 @@
const { curSprite, configForm: form } = props;
useEffect(() => {
-
}, []);
+
+ const formValuesChange = (changeList) => {
+ if (curSprite && changeList && changeList.length > 0) {
+ changeList.forEach(change => {
+ const { name: nameList, value } = change;
+ nameList.forEach(name => {
+ console.log(name, value);
+ switch (name) {
+ default:
+ break;
+ }
+ Utils.removeSelectedEffect();
+ Utils.showSelectedEffect(curSprite);
+ })
+ })
+ }
+ }
+
+ const onFinishFailed = (errorInfo) => {
+ };
+
+ const handleFinish = async (values) => {
+ props.onSubmit({ ...values });
+ }
return (
<>
+ <Form
+ form={form}
+ onFieldsChange={formValuesChange}
+ initialValues={{
+ }}
+ onFinish={handleFinish}
+ onFinishFailed={onFinishFailed}
+ autoComplete="off"
+ style={{
+ maxWidth: 600,
+ }}
+ size='default' // small | default | large
+ variant='filled' // outlined | borderless | filled
+ labelWrap // label 鎹㈣
+ disabled={false}
+ layout='horizontal'
+ >
+
+ <Row gutter={[24, 16]}>
+
+ <Col span={24}>
+ <Row gutter={24}>
+ <Col span={12}>
+ <Form.Item
+ label={intl.formatMessage({ id: 'map.settings.type', defaultMessage: '绫诲瀷' })}
+ labelCol={{ span: 6 }}
+ >
+ <span>{curSprite?.data?.type}</span>
+ </Form.Item>
+ </Col>
+ <Col span={12}>
+ <Form.Item
+ label={intl.formatMessage({ id: 'map.settings.uuid', defaultMessage: '缂栧彿' })}
+ labelCol={{ span: 6 }}
+ >
+ <span>{curSprite?.data?.uuid}</span>
+ </Form.Item>
+ </Col>
+ </Row>
+ </Col>
+
+ </Row>
+ </Form>
</>
)
}
--
Gitblit v1.9.1