已验证 提交 60fa5a5b 编写于 作者: xurime's avatar xurime

- Display negative numbers by applying a red color supported;

- go test updated
上级 bc31e545
......@@ -405,7 +405,7 @@ func TestSetCellStyleCurrencyNumberFormat(t *testing.T) {
t.Log(err)
}
xlsx.SetCellStyle("Sheet1", "A1", "A1", style)
style, err = xlsx.NewStyle(`{"number_format": 188, "decimal_places": 31}`)
style, err = xlsx.NewStyle(`{"number_format": 188, "decimal_places": 31, "negred": true}`)
if err != nil {
t.Log(err)
}
......
此差异已折叠。
......@@ -320,4 +320,5 @@ type formatCellStyle struct {
NumFmt int `json:"number_format"`
DecimalPlaces int `json:"decimal_places"`
Lang string `json:"lang"`
NegRed bool `json:"negred"`
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册