This commit is contained in:
Daniel 2023-08-04 00:07:12 +08:00
parent 2ac751dead
commit 65cbbc589d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 23 additions and 22 deletions

View file

@ -214,7 +214,7 @@ func renderAttributeViewTable(attrView *av.AttributeView, view *av.View) (ret *a
tableRow.ID = rowID
// 格式化数字
if av.KeyTypeNumber == tableCell.ValueType && nil != tableCell.Value && nil != tableCell.Value.Number && av.NumberFormatNone != col.NumberFormat {
if av.KeyTypeNumber == tableCell.ValueType && nil != tableCell.Value && nil != tableCell.Value.Number {
tableCell.Value.Number.Format = col.NumberFormat
tableCell.Value.Number.FormatNumber()
}