@coreui/vue-pro 4.10.1 → 4.10.2
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/index.js
CHANGED
|
@@ -15057,6 +15057,9 @@ const CSmartTable = vue.defineComponent({
|
|
|
15057
15057
|
const filteredColumns = vue.computed(() => filterColumns(items.value, props.columnFilter, columnFilterState.value, itemsDataColumns.value));
|
|
15058
15058
|
const filteredTable = vue.computed(() => filterTable(filteredColumns.value, props.tableFilter, tableFilterState.value, itemsDataColumns.value));
|
|
15059
15059
|
const sortedItems = vue.computed(() => sortItems(props.columnSorter, filteredTable.value, itemsDataColumns.value, sorterState.value));
|
|
15060
|
+
vue.watch(sortedItems, () => {
|
|
15061
|
+
emit('filteredItemsChange', sortedItems.value);
|
|
15062
|
+
});
|
|
15060
15063
|
const numberOfPages = vue.computed(() => itemsPerPage.value ? Math.ceil(sortedItems.value.length / itemsPerPage.value) : 1);
|
|
15061
15064
|
const firstItemOnActivePageIndex = vue.computed(() => activePage.value ? (activePage.value - 1) * itemsPerPage.value : 0);
|
|
15062
15065
|
const currentItems = vue.computed(() => activePage.value
|