n20-common-lib 2.22.5 → 2.22.7

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": "n20-common-lib",
3
- "version": "2.22.5",
3
+ "version": "2.22.7",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -264,12 +264,23 @@ export default {
264
264
  this.$refs.vxeTable.clearCheckboxRow()
265
265
  this.$emit('selection-change-method', [])
266
266
  }
267
+ // 数据更新后重新设置合并单元格
268
+ this.$nextTick(() => {
269
+ if (this.mergeCells && this.mergeCells.length > 0 && this.$refs.vxeTable) {
270
+ this.$refs.vxeTable.setMergeCells(this.mergeCells)
271
+ }
272
+ })
267
273
  }
268
274
  },
269
275
  activated() {
270
276
  this.$refs.vxeTable.loadData(this.data)
277
+ // 数据更新后重新设置合并单元格
278
+ this.$nextTick(() => {
279
+ if (this.mergeCells && this.mergeCells.length > 0 && this.$refs.vxeTable) {
280
+ this.$refs.vxeTable.setMergeCells(this.mergeCells)
281
+ }
282
+ })
271
283
  },
272
- mounted() {},
273
284
  methods: {
274
285
  // 全选/反选
275
286
  toggleAllSelection() {