From 68a1fa6e467acbb790c653b1860621e25e1ed6bc Mon Sep 17 00:00:00 2001 From: fay Date: Thu, 10 May 2018 19:40:15 +0800 Subject: [PATCH] update --- src/case/table/table.dynamicsummarylayertree.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/case/table/table.dynamicsummarylayertree.js b/src/case/table/table.dynamicsummarylayertree.js index 619026798c..7be406f086 100644 --- a/src/case/table/table.dynamicsummarylayertree.js +++ b/src/case/table/table.dynamicsummarylayertree.js @@ -68,17 +68,18 @@ BI.DynamicSummaryLayerTreeTable = BI.inherit(BI.Widget, { var c = [crossHeader[row]]; result.push(c.concat(node || [])); }); + var rowHeaderCreator = BI.isFunction(o.rowHeaderCreator) ? o.rowHeaderCreator() : o.rowHeaderCreator; if (header && header.length > 0) { var newHeader = this._formatColumns(header); var deep = this._getHDeep(); if (deep <= 0) { - newHeader.unshift(o.rowHeaderCreator || { + newHeader.unshift(rowHeaderCreator || { type: "bi.table_style_cell", text: BI.i18nText("BI-Row_Header"), styleGetter: o.headerCellStyleGetter }); } else { - newHeader[0] = o.rowHeaderCreator || { + newHeader[0] = rowHeaderCreator || { type: "bi.table_style_cell", text: BI.i18nText("BI-Row_Header"), styleGetter: o.headerCellStyleGetter