| | |
| | | import { createStyles } from 'antd-style'; |
| | | import * as Utils from '../utils' |
| | | import ShowJson from '../drawer/showJson'; |
| | | import BatchShelfView from './view' |
| | | import BatchModify from './modify'; |
| | | |
| | | const useStyles = createStyles(({ token, css }) => { |
| | |
| | | props.onCancel(); |
| | | }; |
| | | |
| | | const handleDelete = () => { |
| | | batchSprites.forEach((curSprite) => { |
| | | Utils.getMapContainer().removeChild(curSprite); |
| | | Utils.removeSelectedEffect(); |
| | | props.onCancel(); |
| | | }) |
| | | }; |
| | | |
| | | return ( |
| | | <> |
| | | <Drawer |
| | |
| | | }} |
| | | extra={ |
| | | <Space> |
| | | <Button onClick={handleDelete} danger> |
| | | <FormattedMessage id='page.delete' defaultMessage='删除' /> |
| | | </Button> |
| | | <Button onClick={handleCancel}> |
| | | <FormattedMessage id='common.cancel' defaultMessage='取消' /> |
| | | </Button> |
| | |
| | | }) |
| | | } |
| | | /> |
| | | {/* <BatchShelfView |
| | | |
| | | /> */} |
| | | </> |
| | | )} |
| | | |