#
Junjie
2024-06-16 83c548d3dba59aaed9b52b5d413c6912a87d2efc
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>