doway-coms 2.10.67 → 2.10.68

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.10.67",
3
+ "version": "2.10.68",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1926,6 +1926,9 @@ export default {
1926
1926
  if(originCol.cellStyle){
1927
1927
  colParams['cellStyle'] =originCol.cellStyle
1928
1928
  }
1929
+ if(originCol.headerCellStyle){
1930
+ colParams['headerCellStyle'] =originCol.headerCellStyle
1931
+ }
1929
1932
 
1930
1933
  if (originCol.footerSum === true) {
1931
1934
  this.showFooter = true
@@ -3124,7 +3127,14 @@ export default {
3124
3127
  }
3125
3128
  // console.debug('customStyle',customStyle)
3126
3129
  if(this.headerCellStyle){
3127
- customStyle = this.headerCellStyle
3130
+ for(let loopProp in this.headerCellStyle){
3131
+ customStyle[loopProp] = this.headerCellStyle[loopProp]
3132
+ }
3133
+ }
3134
+ if(scope.column?.params.headerCellStyle){
3135
+ for(let loopProp in scope.column.params.headerCellStyle){
3136
+ customStyle[loopProp] = scope.column.params.headerCellStyle[loopProp]
3137
+ }
3128
3138
  }
3129
3139
  this.$emit('headerCellStyleCallback',scope,customStyle)
3130
3140
  return customStyle
@@ -3143,7 +3153,9 @@ export default {
3143
3153
  customStyle = this.cellStyle
3144
3154
  }
3145
3155
  if(scope.column?.params.cellStyle){
3146
- customStyle =scope.column.params.cellStyle
3156
+ for(let loopProp in scope.column.params.cellStyle){
3157
+ customStyle[loopProp] = scope.column.params.cellStyle[loopProp]
3158
+ }
3147
3159
  }
3148
3160
  this.$emit('cellStyleCallback',scope,customStyle)
3149
3161
  return customStyle