Browse Source

Merge branch 'ETA_2.4.0' into debug

xiziwen 2 months ago
parent
commit
9a8a2095cd
1 changed files with 7 additions and 4 deletions
  1. 7 4
      services/excel/lucky_sheet.go

+ 7 - 4
services/excel/lucky_sheet.go

@@ -902,10 +902,10 @@ var LuckyFontFamilyMap = map[int]string{
 	2:  "Tahoma",
 	3:  "Verdana",
 	4:  "微软雅黑",
-	5:  "宋体",  //宋体(Song)、
-	6:  "黑体",  // 黑体(ST Heiti)
-	7:  "楷体",  //楷体(ST Kaiti),
-	8:  "仿宋",  //仿宋(ST FangSong),
+	5:  "宋体",   //宋体(Song)、
+	6:  "黑体",   // 黑体(ST Heiti)
+	7:  "楷体",   //楷体(ST Kaiti),
+	8:  "仿宋",   //仿宋(ST FangSong),
 	9:  "新宋体", //新宋体(ST Song),
 	10: "华文新魏",
 	11: "华文行楷",
@@ -1778,6 +1778,9 @@ func GetTableDataByMixedTableData(config [][]request.MixedTableCellDataReq, hide
 						tmp.HorizontalType = 2
 						tmp.Ht = 2
 					}
+					if styleConfig.FontSize != "" {
+						tmp.Fs = styleConfig.FontSize
+					}
 					showFormatValue := fmt.Sprintf("%v", cell.ShowFormatValue)
 					tmp.Monitor = showFormatValue
 					// 如果没有showValue, 则使用value