mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-03 11:28:12 +08:00
20 lines
307 B
TypeScript
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();
|