import React, { useState, useRef, useEffect } from 'react';
|
import { Col, Form, Input, Row, Switch, Slider, message, Drawer, Space, Button, InputNumber, Segmented } from 'antd';
|
import { FormattedMessage, useIntl, useModel } from '@umijs/max';
|
import { createStyles } from 'antd-style';
|
import Http from '@/utils/http';
|
|
const useStyles = createStyles(({ token, css }) => {
|
|
})
|
|
const ShuttleHandle = (props) => {
|
const intl = useIntl();
|
const { styles } = useStyles();
|
|
useEffect(() => {
|
|
}, []);
|
|
const handleCancel = () => {
|
props.onClose();
|
}
|
|
|
return (
|
<>
|
<Drawer
|
title={intl.formatMessage({ id: 'map.command', defaultMessage: '命令' })}
|
width={350}
|
closable={false}
|
open={props.open}
|
getContainer={props.refCurr}
|
rootStyle={{ position: "absolute" }}
|
onClose={handleCancel}
|
extra={
|
<Space>
|
<Button onClick={handleCancel}>
|
<FormattedMessage id='common.cancel' defaultMessage='取消' />
|
</Button>
|
{/* <Button onClick={handleOk} type="primary">
|
<FormattedMessage id='common.submit' defaultMessage='确定' />
|
</Button> */}
|
</Space>
|
}
|
>
|
<h1>asds</h1>
|
|
</Drawer>
|
</>
|
)
|
|
}
|
|
export default ShuttleHandle;
|