doway-coms 2.5.4 → 2.5.6

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.6",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -233,6 +233,7 @@
233
233
  <template #select_edit="scope">
234
234
  <div class="interceptor-class">
235
235
  <a-select
236
+ :allowClear="scope.column.params.allowClear"
236
237
  v-model="scope.row[scope.column.property]"
237
238
  @change="cellValueChange(scope)"
238
239
  size="small"
@@ -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