adminforth 2.4.0-next.296 → 2.4.0-next.297
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.
|
@@ -211,11 +211,12 @@
|
|
|
211
211
|
});
|
|
212
212
|
|
|
213
213
|
watch([() => currentSortField.value, () => currentSortDirection.value], () => {
|
|
214
|
-
if (currentPage.value !== 1) currentPage.value = 1;
|
|
215
214
|
refresh();
|
|
216
215
|
emit('update:sortField', currentSortField.value);
|
|
217
216
|
emit('update:sortDirection', currentSortField.value ? currentSortDirection.value : undefined);
|
|
218
|
-
|
|
217
|
+
const field = currentSortField.value ?? null;
|
|
218
|
+
const direction = currentSortField.value ? currentSortDirection.value : null;
|
|
219
|
+
emit('sort-change', { field, direction });
|
|
219
220
|
}, { immediate: false });
|
|
220
221
|
|
|
221
222
|
const totalPages = computed(() => {
|