File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 69
69
</ul >
70
70
</nav >
71
71
</div >
72
- <!-- <Pagination :page.sync="page" :per_page="per_page" :total="rowCount" :pagiantion_limit="pagiantion_limit"></Pagination> -->
73
72
</div >
74
73
<div class =" col-md-6" >
75
- <PaginationInfo :current-page-rows-length =" vbt_data.rows.length" :filtered-rows-length =" rowCount" :original-rows-length =" data.rows.length" ></PaginationInfo >
74
+ <div class =" text-right justify-content-center" >
75
+ <slot name =" pagination-info" :currentPageRowsLength =" currentPageRowsLength" :filteredRowsLength =" filteredRowsLength" :originalRowsLength =" originalRowsLength" >
76
+ <template v-if =" currentPageRowsLength != 0 " >
77
+ From 1 to {{currentPageRowsLength}} of {{filteredRowsLength}} entries
78
+ </template >
79
+ <template v-else >
80
+ No results found
81
+ </template >
82
+ <template >
83
+ ({{originalRowsLength}} total records)
84
+ </template >
85
+ </slot >
86
+ </div >
76
87
</div >
77
88
</div >
78
89
</div >
@@ -432,6 +443,17 @@ export default {
432
443
return has_unique_id;
433
444
},
434
445
446
+ currentPageRowsLength () {
447
+ return this .vbt_data .rows .length ;
448
+ },
449
+
450
+ filteredRowsLength () {
451
+ return this .rowCount ;
452
+ },
453
+
454
+ originalRowsLength () {
455
+ return this .data .rows .length ;
456
+ }
435
457
},
436
458
watch: {
437
459
" query.filters" : {
You can’t perform that action at this time.
0 commit comments