doway-coms 2.10.72 → 2.10.73

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.72",
3
+ "version": "2.10.73",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -10,7 +10,7 @@
10
10
  </a-button>
11
11
  <div
12
12
  :style="getFieldStyle(col)"
13
- v-for="(col,colIndex) in internalComputedHiddenCols"
13
+ v-for="(col) in internalComputedHiddenCols"
14
14
  :key="col.field"
15
15
  v-show="hiddenDetail ? col.foldVisible===true : true"
16
16
  >
@@ -37,7 +37,11 @@
37
37
  blurChange(col)
38
38
  }
39
39
  "
40
- />
40
+ >
41
+ <template #right="slotProps">
42
+ <slot :name="'right-' + col.field" v-bind="slotProps"></slot>
43
+ </template>
44
+ </BaseInput>
41
45
  <!-- 按钮弹出框输入控件 -->
42
46
  <!-- isButtonShow字段是额外添加字段,用于控制区分输入框控件 -->
43
47
  <BaseButton
@@ -326,6 +330,7 @@
326
330
  }
327
331
  "
328
332
  />
333
+ <!-- 在最后添加自定义插槽 -->
329
334
  </div>
330
335
  <template v-if="layoutType==='default'">
331
336
  <!-- <div class="d-form-item-ghost"></div>
@@ -3164,7 +3164,7 @@ export default {
3164
3164
  },
3165
3165
  headerCellStyleFunc(scope){
3166
3166
  let customStyle = {}
3167
- if(this.$store.getters.baseSetting?.gridHeaderCellStyle){
3167
+ if(this.$store.getters.baseSetting && this.$store.getters.baseSetting.gridHeaderCellStyle){
3168
3168
  customStyle = JSON.parse(this.$store.getters.baseSetting.gridHeaderCellStyle)
3169
3169
  }
3170
3170
  // console.debug('customStyle',customStyle)
@@ -3173,7 +3173,7 @@ export default {
3173
3173
  customStyle[loopProp] = this.headerCellStyle[loopProp]
3174
3174
  }
3175
3175
  }
3176
- if(scope.column?.params.headerCellStyle){
3176
+ if(scope.column.params && scope.column.params.headerCellStyle){
3177
3177
  for(let loopProp in scope.column.params.headerCellStyle){
3178
3178
  customStyle[loopProp] = scope.column.params.headerCellStyle[loopProp]
3179
3179
  }
@@ -3194,7 +3194,7 @@ export default {
3194
3194
  if(this.cellStyle){
3195
3195
  customStyle = this.cellStyle
3196
3196
  }
3197
- if(scope.column?.params.cellStyle){
3197
+ if( scope.column.params && scope.column.params.cellStyle){
3198
3198
  for(let loopProp in scope.column.params.cellStyle){
3199
3199
  customStyle[loopProp] = scope.column.params.cellStyle[loopProp]
3200
3200
  }
@@ -44,6 +44,7 @@
44
44
  </span>
45
45
  </Tooltip>
46
46
  </div>
47
+ <slot name="right" :field="name"></slot>
47
48
  </div>
48
49
  </template>
49
50