|
@@ -1186,8 +1186,12 @@ func handleMixCellShowStyle(showStyleList []string, calculateCellMap map[string]
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- val = changePointDecimalPlaces(val, styleConf.Pn, styleConf.Nt, isPercent)
|
|
|
- cell.ShowFormatValue = val
|
|
|
+ if styleConf.Pn != 0 || styleConf.Nt != "" {
|
|
|
+ val = changePointDecimalPlaces(val, styleConf.Pn, styleConf.Nt, isPercent)
|
|
|
+ cell.ShowFormatValue = val
|
|
|
+ } else {
|
|
|
+ cell.ShowFormatValue = cell.ShowStyle
|
|
|
+ }
|
|
|
config[cellPosition.Column][cellPosition.Row] = cell
|
|
|
}
|
|
|
}
|