/** * Created by guopeng on 16/7/5. * 左侧边距块 (出于最小化rerender考虑) */ import * as React from "react"; import {observer} from "mobx-react/index"; import PaddingBlock from "./MarginBlock"; @observer class TopMarginBlock extends PaddingBlock { constructor(props, context){ super(props, context); this.direction = "vertical"; } render(): JSX.Element { let rootStyle = this.getStyles().root; rootStyle.top = 0; rootStyle.height = this.reportModel.topMargin.pixels * this.reportDesigner.zoom; return(
); } } export default TopMarginBlock;