mediacube-ui 0.1.380 → 0.1.381

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.381](https://github.com/MediaCubeCo/mcui/compare/v0.1.380...v0.1.381) (2025-05-30)
6
+
5
7
  ### [0.1.380](https://github.com/MediaCubeCo/mcui/compare/v0.1.379...v0.1.380) (2025-05-29)
6
8
 
7
9
  ### [0.1.379](https://github.com/MediaCubeCo/mcui/compare/v0.1.378...v0.1.379) (2025-05-14)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.380",
3
+ "version": "0.1.381",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -418,6 +418,12 @@ export default {
418
418
  })
419
419
  }
420
420
  },
421
+ items: {
422
+ handler(value) {
423
+ if (value && value.length) this.checkOccupancy()
424
+ },
425
+ immediate: true,
426
+ },
421
427
  },
422
428
  mounted() {
423
429
  this.setFirstColsWidth()
@@ -454,6 +460,14 @@ export default {
454
460
  }),
455
461
  ]
456
462
  },
463
+ checkOccupancy() {
464
+ if (!this.$refs.xTable) return
465
+ const tableHeight = this.$refs.xTable.$el.getBoundingClientRect().height
466
+ const tableDataHeight = this.$refs.xTable.rowHeight * this.items.length
467
+ if (tableHeight >= tableDataHeight && this.hasMore) {
468
+ this.load()
469
+ }
470
+ },
457
471
  load() {
458
472
  /**
459
473
  * Событие по подгрузке данных