import {ReportDesignMode} from "../configs/enums"; /** * Created by W.X. on 2016/11/10. */ class ReportConfig { private _blockBands: any = {}; constructor(config) { if (config) { this._init(config); } } _init(config: any) { //如果有不需要的band类型 if (config.reportMode === ReportDesignMode.ChineseTable) { this._blockBands.TitleBand = true; this._blockBands.ColumnHeaderBand = true; this._blockBands.ColumnFooterBand = true; this._blockBands.Group = true; this._blockBands.GroupHeaderBand = true; this._blockBands.GroupFooterBand = true; } } get blockBands() { return this._blockBands; } } export default ReportConfig;