kafka-manager 2.0

This commit is contained in:
zengqiao
2020-09-28 15:46:34 +08:00
parent 28d985aaf1
commit c6e4b60424
1253 changed files with 82183 additions and 37179 deletions

View File

@@ -0,0 +1,23 @@
import React from 'react';
import './index.less';
import { fullScreen } from 'store/full-screen';
import { observer } from 'mobx-react';
@observer
export class FullScreen extends React.Component {
public handleClose = (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
if ((event.target as any).nodeName === 'SECTION') fullScreen.close();
}
public render() {
if (!fullScreen.content) return null;
return (
<section className="full-screen-mark" onClick={this.handleClose}>
<div className="full-screen-content">
{fullScreen.content}
</div>
</section>
);
}
}