fix: 调整报表颜色样式
This commit is contained in:
parent
04c0077e16
commit
aa3151baa5
|
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
const (
|
||||
RedStyle = "${color: FF0000;horizontal:center;vertical:center;borderColor:#000000}"
|
||||
GreenStyle = "${color: 3e7c41;horizontal:center;vertical:center;borderColor:#000000}"
|
||||
GreenStyle = "${color: 008000;horizontal:center;vertical:center;borderColor:#000000}"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
|
|
@ -143,7 +143,9 @@ func SetStyle(styleMap map[string]string, f *excelize.File) (int, error) {
|
|||
// 设置字体颜色
|
||||
if colorHex, exists := styleMap["color"]; exists {
|
||||
style.Font = &excelize.Font{
|
||||
Color: colorHex,
|
||||
Color: colorHex,
|
||||
Family: "SimHei",
|
||||
Bold: true,
|
||||
}
|
||||
}
|
||||
// 设置水平对齐
|
||||
|
|
|
|||
Loading…
Reference in New Issue