This commit is contained in:
Daniel 2023-10-06 10:56:07 +08:00
parent 12f9042eab
commit 429f72ac75
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -288,7 +288,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 {
if av.KeyTypeNumber == tableCell.ValueType && nil != tableCell.Value && nil != tableCell.Value.Number && tableCell.Value.Number.IsNotEmpty {
tableCell.Value.Number.Format = col.NumberFormat
tableCell.Value.Number.FormatNumber()
}