edvoyui-component-library-test-flight 0.0.232 → 0.0.233
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/dist/components/table/UTable.vue +9 -4
- package/dist/edvoy-ui.cjs.js +11 -11
- package/dist/edvoy-ui.es.js +4153 -4149
- package/dist/edvoy-ui.umd.js +11 -11
- package/package.json +1 -1
|
@@ -279,13 +279,12 @@
|
|
|
279
279
|
<slot
|
|
280
280
|
name="tableCount"
|
|
281
281
|
:currentPage="newCurrentPage"
|
|
282
|
-
:from="
|
|
283
|
-
:to="
|
|
282
|
+
:from="rangeFrom"
|
|
283
|
+
:to="rangeTo"
|
|
284
284
|
>
|
|
285
285
|
<div class="inline-flex items-center self-stretch gap-x-3">
|
|
286
286
|
<div class="text-sm font-normal text-gray-600">
|
|
287
|
-
{{
|
|
288
|
-
{{ (newCurrentPage + 1) * limit }} of {{ total }}
|
|
287
|
+
{{ rangeFrom }} - {{ rangeTo }} of {{ total }}
|
|
289
288
|
</div>
|
|
290
289
|
<div class="self-stretch w-px h-4 my-auto bg-gray-300"></div>
|
|
291
290
|
<div class="inline-flex items-center gap-0">
|
|
@@ -418,6 +417,12 @@ const newCheckedRows = ref([...checkedRows.value]);
|
|
|
418
417
|
const newCurrentPage = ref(currentPage.value);
|
|
419
418
|
const limit = ref(props.perPage);
|
|
420
419
|
const loading = computed(() => props.tableLoading);
|
|
420
|
+
const rangeFrom = computed(() =>
|
|
421
|
+
total.value > 0 ? newCurrentPage.value * limit.value + 1 : 0
|
|
422
|
+
);
|
|
423
|
+
const rangeTo = computed(() =>
|
|
424
|
+
Math.min((newCurrentPage.value + 1) * limit.value, total.value)
|
|
425
|
+
);
|
|
421
426
|
|
|
422
427
|
// Computed Property
|
|
423
428
|
|