edvoyui-component-library-test-flight 0.0.231 → 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 +15 -10
- package/dist/edvoy-ui.cjs.js +11 -11
- package/dist/edvoy-ui.css +1 -1
- package/dist/edvoy-ui.es.js +4154 -4149
- package/dist/edvoy-ui.umd.js +12 -12
- package/package.json +1 -1
|
@@ -279,18 +279,17 @@
|
|
|
279
279
|
<slot
|
|
280
280
|
name="tableCount"
|
|
281
281
|
:currentPage="newCurrentPage"
|
|
282
|
-
:from="
|
|
283
|
-
:to="
|
|
282
|
+
:from="rangeFrom"
|
|
283
|
+
:to="rangeTo"
|
|
284
284
|
>
|
|
285
|
-
<div class="inline-flex items-center gap-x-
|
|
286
|
-
<div class="text-sm font-normal text-gray-
|
|
287
|
-
{{
|
|
288
|
-
{{ (newCurrentPage + 1) * limit }} of {{ total }}
|
|
285
|
+
<div class="inline-flex items-center self-stretch gap-x-3">
|
|
286
|
+
<div class="text-sm font-normal text-gray-600">
|
|
287
|
+
{{ rangeFrom }} - {{ rangeTo }} of {{ total }}
|
|
289
288
|
</div>
|
|
290
|
-
<div class="
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
289
|
+
<div class="self-stretch w-px h-4 my-auto bg-gray-300"></div>
|
|
290
|
+
<div class="inline-flex items-center gap-0">
|
|
291
|
+
<span class="text-sm font-normal text-gray-600"
|
|
292
|
+
> Items per page:</span>
|
|
294
293
|
<EUIPageLimit
|
|
295
294
|
:page-limit="limit"
|
|
296
295
|
@update-limit="changeLimit($event)"
|
|
@@ -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
|
|