* [refac] fix pivot colspan config.
This commit is contained in:
@@ -1355,6 +1355,25 @@ class pivotModel extends model
|
||||
return $configs;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculate merge cell config.
|
||||
*
|
||||
* @param array $groups
|
||||
* @param array $records
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function calculateMergeCellConfig(array $groups, array $columns, array $records)
|
||||
{
|
||||
if(empty($records)) return array();
|
||||
|
||||
$showOrigins = $this->getShowOriginsFromColumns($columns);
|
||||
$showOrigins = $this->getShowOriginsWithRecord($records[0], $showOrigins);
|
||||
|
||||
$configs = $this->calculateGroupMergeCellConfig($groups, $records);
|
||||
return $this->calculateColumnMergeCellConfig($configs, $showOrigins);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gen sheet.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user