import { Connect } from "dob-react" import * as React from "react" import { Props, State } from "./index.type" import * as Styled from "./style" @Connect class Save extends React.Component { public static defaultProps = new Props() public state = new State() public render() { return ( 保存 ) } private handleClick = () => { this.props.actions.EventAction.emit(this.props.stores.EventStore.emitEditorCallback, { funcName: "onSave", data: this.props.actions.ApplicationAction.getFullInformationGzipped() }) } } export default { position: "navbarRight", class: Save }