将最新的代码合并到当前开发分支中

This commit is contained in:
2022-12-14 16:40:11 +08:00
23 changed files with 145 additions and 221 deletions

View File

@@ -17,6 +17,7 @@ class ExportTools
foreach ($fields as $field_key => $field_name) {
$col_key = \PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($write_col);
$sheet->setCellValue($col_key . $write_line, $field_name);
$sheet->getColumnDimension($col_key)->setWidth(mb_strlen($field_name) * 3);
$write_col++;
}