| | |
| | | const { styles } = useStyles(); |
| | | const [activeTabKey, setActiveTabKey] = useState('json'); |
| | | |
| | | const [jsonForm] = Form.useForm(); |
| | | const { curSprite } = props; |
| | | |
| | | const contentList = { |
| | | json: ( |
| | | <JSON |
| | | refCurr={props.refCurr} |
| | | curSprite={props.curSprite} |
| | | setSpriteBySettings={props.setSpriteBySettings} |
| | | setDidClickSprite={props.setDidClickSprite} |
| | | onSubmit={props.onSubmit} |
| | | jsonForm={jsonForm} |
| | | /> |
| | | ), |
| | | }; |
| | | |
| | | const handleCancel = () => { |
| | | props.onCancel(); |
| | | }; |
| | | |
| | | const handleOk = () => { |
| | | } |
| | | |
| | | return ( |
| | | <> |
| | |
| | | { |
| | | 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} |