doway-coms 2.11.81 → 2.11.85

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.11.81",
3
+ "version": "2.11.85",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -274,6 +274,7 @@
274
274
  col.controlType === 'pulldown' &&
275
275
  (col.isButtonShow == false || col.isButtonShow == undefined)
276
276
  "
277
+ :ref="'pulldown_' + col.field"
277
278
  :formRow="formRow"
278
279
  :isOld="isOld"
279
280
  :edit="col.edit"
@@ -798,6 +799,16 @@ export default {
798
799
  // })
799
800
  // }
800
801
  this.$emit('selectRows', selectRows)
802
+ },
803
+ reloadPulldownColumn(field) {
804
+ const pulldownRef = this.$refs['pulldown_' + field]
805
+ if (pulldownRef) {
806
+ // 处理 ref 可能是数组的情况(v-for 中的 ref)
807
+ const component = Array.isArray(pulldownRef) ? pulldownRef[0] : pulldownRef
808
+ if (component && component.reloadColumn) {
809
+ component.reloadColumn()
810
+ }
811
+ }
801
812
  }
802
813
  },
803
814
  }
@@ -2201,8 +2201,8 @@ export default {
2201
2201
  // if (XEUtils.isNumber(originCol.max)) {
2202
2202
  // colParams['max'] = originCol.max
2203
2203
  // }
2204
- colParams['max'] =XEUtils.isNumber(originCol.max)?originCol.max:'Infinity'
2205
- colParams['min'] =XEUtils.isNumber(originCol.min)?originCol.min:'-Infinity'
2204
+ colParams['max'] =XEUtils.isNumber(originCol.max)?originCol.max:Infinity
2205
+ colParams['min'] =XEUtils.isNumber(originCol.min)?originCol.min:-Infinity
2206
2206
  if (originCol.precision) {
2207
2207
  colParams['precision'] = originCol.precision
2208
2208
  //加入验证逻辑
@@ -617,7 +617,11 @@ export default {
617
617
  this.filterCols.push(this.columns[i])
618
618
  }
619
619
  }
620
- this.$refs.pupupGridView.refreshColumn()
620
+ this.$nextTick(() => {
621
+ if (this.$refs.pupupGridView) {
622
+ this.$refs.pupupGridView.refreshColumn()
623
+ }
624
+ })
621
625
  },
622
626
  gridRowStyle(scope) {
623
627
  if (scope.row.sysRepeat === true) {