Files
KnowStreaming/kafka-manager-console/src/store/full-screen.ts
2020-09-28 15:46:34 +08:00

20 lines
307 B
TypeScript

import { observable, action } from 'mobx';
class FullScreen {
@observable
public content: JSX.Element = null;
@action.bound
public show(dom: JSX.Element) {
this.content = dom;
}
@action.bound
public close() {
this.content = null;
}
}
export const fullScreen = new FullScreen();