mediacube-ui 0.1.415 → 0.1.416
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.416](https://github.com/MediaCubeCo/mcui/compare/v0.1.415...v0.1.416) (2025-09-18)
|
|
6
|
+
|
|
5
7
|
### [0.1.415](https://github.com/MediaCubeCo/mcui/compare/v0.1.414...v0.1.415) (2025-09-18)
|
|
6
8
|
|
|
7
9
|
### [0.1.414](https://github.com/MediaCubeCo/mcui/compare/v0.1.413...v0.1.414) (2025-09-17)
|
package/package.json
CHANGED
|
@@ -427,12 +427,34 @@ export default {
|
|
|
427
427
|
mounted() {
|
|
428
428
|
this.setFirstColsWidth()
|
|
429
429
|
window.addEventListener('resize', this.checkHorizontalScroll)
|
|
430
|
+
this.initFooterScroll()
|
|
430
431
|
},
|
|
431
432
|
beforeDestroy() {
|
|
432
433
|
this.observer && this.observer.disconnect()
|
|
433
434
|
window.removeEventListener('resize', this.checkHorizontalScroll)
|
|
435
|
+
this.removeFooterScroll()
|
|
434
436
|
},
|
|
435
437
|
methods: {
|
|
438
|
+
// Нужно для горизонтального скрола таблиц с футером, чтобы правильно показывать тень для первой/последней колонки
|
|
439
|
+
initFooterScroll() {
|
|
440
|
+
const footerWrapper = this.$refs.xTable?.$el?.querySelector('.vxe-table--footer-wrapper.body--wrapper')
|
|
441
|
+
if (footerWrapper && !this.cardIsOpen && (this.fixedFirstColumn || this.fixedLastColumn)) {
|
|
442
|
+
this.footerScrollHandler = e => this.handleScroll({ $event: e, type: 'body', isX: true })
|
|
443
|
+
footerWrapper.addEventListener('scroll', this.footerScrollHandler)
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
removeFooterScroll() {
|
|
447
|
+
const footerWrapper = this.$refs.xTable?.$el?.querySelector('.vxe-table--footer-wrapper.body--wrapper')
|
|
448
|
+
if (
|
|
449
|
+
footerWrapper &&
|
|
450
|
+
!this.cardIsOpen &&
|
|
451
|
+
(this.fixedFirstColumn || this.fixedLastColumn) &&
|
|
452
|
+
this.footerScrollHandler
|
|
453
|
+
) {
|
|
454
|
+
footerWrapper.removeEventListener('scroll', this.footerScrollHandler)
|
|
455
|
+
this.footerScrollHandler = null
|
|
456
|
+
}
|
|
457
|
+
},
|
|
436
458
|
formattedNumber(value, decimals = 2, is_rtl = false) {
|
|
437
459
|
if (value == null) return null
|
|
438
460
|
|