| | |
| | | '': '', |
| | | '': '', |
| | | 'map.drawer.json': 'JSON', |
| | | 'map.drawer.shelf.view.title': 'Shelf Information', |
| | | '': '', |
| | | '': '', |
| | | '': '', |
| | |
| | | import * as Utils from '../../utils' |
| | | import Http from '@/utils/http'; |
| | | import ShowJson from '../showJson'; |
| | | import ShelfView from './view' |
| | | |
| | | const useStyles = createStyles(({ token, css }) => { |
| | | |
| | |
| | | const ShelfDrawer = (props) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | const [activeTabKey, setActiveTabKey] = useState('json'); |
| | | const [activeTabKey, setActiveTabKey] = useState('view'); |
| | | |
| | | const contentList = { |
| | | view: ( |
| | | <ShelfView |
| | | |
| | | /> |
| | | ), |
| | | json: ( |
| | | <ShowJson |
| | | data={props.curSprite.data} |
| | |
| | | type='inner' |
| | | tabList={[ |
| | | { |
| | | key: 'view', |
| | | tab: intl.formatMessage({ id: 'map.drawer.shelf.view.title', defaultMessage: '库位信息' }), |
| | | }, |
| | | { |
| | | key: 'json', |
| | | tab: intl.formatMessage({ id: 'map.drawer.json', defaultMessage: 'JSON' }), |
| | | }, |
New file |
| | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Card, Form, Button } from 'antd'; |
| | | import { FormattedMessage, useIntl, useModel } from '@umijs/max'; |
| | | import { createStyles } from 'antd-style'; |
| | | import * as Utils from '../../utils' |
| | | import Http from '@/utils/http'; |
| | | |
| | | const useStyles = createStyles(({ token, css }) => { |
| | | |
| | | }) |
| | | |
| | | const ShelfView = (props) => { |
| | | const intl = useIntl(); |
| | | const { styles } = useStyles(); |
| | | |
| | | useEffect(() => { |
| | | |
| | | }, []); |
| | | |
| | | return ( |
| | | <> |
| | | <h1>HJdsa</h1> |
| | | </> |
| | | ) |
| | | } |
| | | |
| | | export default ShelfView; |