#
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 }) => {
@@ -14,12 +14,10 @@
    const intl = useIntl();
    const { styles } = useStyles();
    const [activeTabKey, setActiveTabKey] = useState('json');
    const { curSprite } = props;
    const contentList = {
        json: (
            <JSON
            <ShowJson
                curSprite={props.curSprite}
            />
        ),
@@ -28,6 +26,7 @@
    return (
        <>
            <Card
                className='drawer-card'
                hoverable
                bordered={false}
                type='inner'
@@ -48,6 +47,9 @@
                    style: {
                    }
                }}
                style={{
                    height: '100%'
                }}
            >
                {contentList[activeTabKey]}
            </Card>