doway-coms 2.2.5 → 2.2.7
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 +1 -1
- package/packages/utils/filters.js +3 -0
- package/packages/utils/gridFormat.js +3 -0
- package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
- package/dist/css/index.86478f73.css +0 -3
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.307eaa8f.js +0 -347
- package/dist/js/index.48e7f7ac.js +0 -2
package/package.json
CHANGED
|
@@ -463,6 +463,9 @@ export function gridDefaultValueDisplay(rowInfo,colInfo){
|
|
|
463
463
|
if(colInfo.params.doRound){
|
|
464
464
|
displayValue=XEUtils.round(displayValue,colInfo.params.precision)
|
|
465
465
|
}
|
|
466
|
+
if(colInfo.params.percent){
|
|
467
|
+
displayValue=XEUtils.round(displayValue*100,colInfo.params.precision)+'%'
|
|
468
|
+
}
|
|
466
469
|
break
|
|
467
470
|
|
|
468
471
|
}
|
|
@@ -60,5 +60,8 @@ VXETable.formats.mixin({
|
|
|
60
60
|
},
|
|
61
61
|
formatPercentAndFixedNumber({ cellValue }) {
|
|
62
62
|
return XEUtils.toFixed(XEUtils.round(cellValue, digits), digits) +'%'
|
|
63
|
+
},
|
|
64
|
+
formatPercentValue({ cellValue },digits=2) {
|
|
65
|
+
return XEUtils.round(cellValue*100,digits) + '%'
|
|
63
66
|
}
|
|
64
67
|
})
|