From a5f74630d35995de80d21fdf60f53abd676f6eba Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 21 May 2019 16:29:40 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Pman/Roo.php b/Pman/Roo.php index 21339a2..8866e22 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -467,11 +467,7 @@ class Pman_Roo extends Pman $titles = explode(',', $titles); } foreach($cols as $i=>$col) { - if (method_exists($data, 'toSimpleExcelRow')) { - - } - - $se_config['cols'][] = array( + $add = array( 'header'=> isset($titles[$i]) ? $titles[$i] : $col, 'dataIndex'=> $col, 'width'=> 100, @@ -480,6 +476,12 @@ class Pman_Roo extends Pman // 'fillBlank' => 'gray', // set ); + if (method_exists($data, 'toSimpleExcelCol')) { + $add = $data->toSimpleExcelColumn($col); + } + + $se_config['cols'][] = $add; + } -- 2.39.2