From 83c548d3dba59aaed9b52b5d413c6912a87d2efc Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期日, 16 六月 2024 15:50:14 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx | 29 ++++++-----------------------
1 files changed, 6 insertions(+), 23 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
index e296144..faef89f 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -4,7 +4,7 @@
import { createStyles } from 'antd-style';
import * as Utils from '../../utils'
import Http from '@/utils/http';
-import JSON from './json';
+import ShowJson from '../showJson';
const useStyles = createStyles(({ token, css }) => {
@@ -15,31 +15,18 @@
const { styles } = useStyles();
const [activeTabKey, setActiveTabKey] = useState('json');
- const [jsonForm] = Form.useForm();
-
const contentList = {
json: (
- <JSON
- refCurr={props.refCurr}
+ <ShowJson
curSprite={props.curSprite}
- setSpriteBySettings={props.setSpriteBySettings}
- setDidClickSprite={props.setDidClickSprite}
- onSubmit={props.onSubmit}
- jsonForm={jsonForm}
/>
),
};
- const handleCancel = () => {
- props.onCancel();
- };
-
- const handleOk = () => {
- }
-
return (
<>
<Card
+ className='drawer-card'
hoverable
bordered={false}
type='inner'
@@ -47,13 +34,6 @@
{
key: 'json',
tab: intl.formatMessage({ id: 'map.drawer.json', defaultMessage: 'JSON' }),
- // icon: <BorderOuterOutlined />
-
- },
- {
- key: 'config',
- tab: intl.formatMessage({ id: 'map.settings.config.param', defaultMessage: '绯荤粺鍙傛暟' }),
- // icon: <BranchesOutlined />
},
]}
activeTabKey={activeTabKey}
@@ -67,6 +47,9 @@
style: {
}
}}
+ style={{
+ height: '100%'
+ }}
>
{contentList[activeTabKey]}
</Card>
--
Gitblit v1.9.1