doway-coms 2.5.4 → 2.5.5

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.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -471,6 +471,13 @@ export function gridDefaultValueDisplay(rowInfo,colInfo){
471
471
  }
472
472
  }
473
473
  break
474
+ case controlType.date:
475
+ if(colInfo.params&&colInfo.params.formatMethod){
476
+ displayValue=colInfo.params.formatMethod(displayValue)
477
+ }else{
478
+ displayValue=moment(displayValue).format(colInfo.params.format)
479
+ }
480
+ break
474
481
 
475
482
  }
476
483
  return displayValue