mediacube-ui 0.1.380 → 0.1.382
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,10 @@
|
|
|
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.382](https://github.com/MediaCubeCo/mcui/compare/v0.1.381...v0.1.382) (2025-06-02)
|
|
6
|
+
|
|
7
|
+
### [0.1.381](https://github.com/MediaCubeCo/mcui/compare/v0.1.380...v0.1.381) (2025-05-30)
|
|
8
|
+
|
|
5
9
|
### [0.1.380](https://github.com/MediaCubeCo/mcui/compare/v0.1.379...v0.1.380) (2025-05-29)
|
|
6
10
|
|
|
7
11
|
### [0.1.379](https://github.com/MediaCubeCo/mcui/compare/v0.1.378...v0.1.379) (2025-05-14)
|
package/package.json
CHANGED
|
@@ -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
|
* Событие по подгрузке данных
|