mediacube-ui 0.1.367 → 0.1.368
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.368](https://github.com/MediaCubeCo/mcui/compare/v0.1.367...v0.1.368) (2025-03-25)
|
|
6
|
+
|
|
5
7
|
### [0.1.367](https://github.com/MediaCubeCo/mcui/compare/v0.1.366...v0.1.367) (2025-03-24)
|
|
6
8
|
|
|
7
9
|
### [0.1.366](https://github.com/MediaCubeCo/mcui/compare/v0.1.365...v0.1.366) (2025-03-18)
|
package/package.json
CHANGED
|
@@ -44,7 +44,11 @@
|
|
|
44
44
|
</component>
|
|
45
45
|
<div v-if="sortLoading || $attrs.loading" :class="footerClasses" class="mc-table-wrapper__footer">
|
|
46
46
|
<div v-if="footerInfo !== 'total'" class="mc-table-wrapper__tint"></div>
|
|
47
|
-
<div
|
|
47
|
+
<div
|
|
48
|
+
v-if="($attrs.loading && scrollIsBottom) || sortLoading"
|
|
49
|
+
:style="loadingWrapperStyle"
|
|
50
|
+
class="mc-table-wrapper__loading"
|
|
51
|
+
>
|
|
48
52
|
<mc-svg-icon class="mc-table-wrapper__load-icon" name="loader" />
|
|
49
53
|
<mc-title color="outline-gray">{{ placeholders.loading }}</mc-title>
|
|
50
54
|
</div>
|
|
@@ -330,6 +334,11 @@ export default {
|
|
|
330
334
|
}
|
|
331
335
|
return attrs
|
|
332
336
|
},
|
|
337
|
+
loadingWrapperStyle() {
|
|
338
|
+
return {
|
|
339
|
+
width: this.cardIsOpen ? `${this.firstColsWidth}px` : '100%',
|
|
340
|
+
}
|
|
341
|
+
},
|
|
333
342
|
canShowLoader() {
|
|
334
343
|
return !this.scrollable && this.hasMore
|
|
335
344
|
},
|
|
@@ -405,6 +414,13 @@ export default {
|
|
|
405
414
|
'$attrs.loading'() {
|
|
406
415
|
this.checkHorizontalScroll()
|
|
407
416
|
},
|
|
417
|
+
totalFooter() {
|
|
418
|
+
if (this.footerInfo === 'total') {
|
|
419
|
+
this.$nextTick(() => {
|
|
420
|
+
this.api.updateFooter()
|
|
421
|
+
})
|
|
422
|
+
}
|
|
423
|
+
},
|
|
408
424
|
},
|
|
409
425
|
mounted() {
|
|
410
426
|
this.setFirstColsWidth()
|
|
@@ -491,6 +507,7 @@ export default {
|
|
|
491
507
|
? columns.filter((c, i) => !!i)
|
|
492
508
|
: columns.filter(col => col.fixed !== 'left')
|
|
493
509
|
hideColumns.forEach(col => (col.visible = false))
|
|
510
|
+
this.tableBodyScrollLeft = false
|
|
494
511
|
this.$refs.xTable.refreshColumn()
|
|
495
512
|
} else {
|
|
496
513
|
this.$refs.xTable.resetColumn()
|