doway-coms 2.2.3 → 2.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.2.3",
3
+ "version": "2.2.4",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -460,8 +460,8 @@ export function gridDefaultValueDisplay(rowInfo,colInfo){
460
460
  displayValue = displayValue.join(',')
461
461
  break
462
462
  case controlType.number:
463
- if(colInfo.params.doFloor){
464
- displayValue=XEUtils.floor(displayValue,colInfo.params.precision)
463
+ if(colInfo.params.doRound){
464
+ displayValue=XEUtils.round(displayValue,colInfo.params.precision)
465
465
  }
466
466
  break
467
467
 
@@ -57,5 +57,8 @@ VXETable.formats.mixin({
57
57
  },
58
58
  formatPercent({ cellValue }) {
59
59
  return cellValue + '%'
60
+ },
61
+ formatPercentAndFixedNumber({ cellValue }) {
62
+ return XEUtils.toFixed(XEUtils.round(cellValue, digits), digits) +'%'
60
63
  }
61
64
  })