import * as React from "react"; import { PageProps } from "maishu-chitu-react"; export abstract class BasePage

extends React.Component { protected backButtonVisiable = false; protected title: string; constructor(props: P) { super(props); let render = this.render; this.render = () => { let toolbarLeft = this.renderToolbarLeft(); let toolbarRight = this.renderToolbarRight(); return <>

{this.title ?

{this.title}

: null}
{render ? render.apply(this) : null} } } protected renderToolbarLeft(): React.ReactElement[] { return []; } protected renderToolbarRight(): React.ReactElement[] { return []; } }