adminforth 2.4.0-next.135 → 2.4.0-next.136
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.
|
@@ -128,6 +128,10 @@
|
|
|
128
128
|
import SkeleteLoader from '@/components/SkeleteLoader.vue';
|
|
129
129
|
import { IconTableRowOutline } from '@iconify-prerendered/vue-flowbite';
|
|
130
130
|
|
|
131
|
+
defineExpose({
|
|
132
|
+
refreshTable
|
|
133
|
+
})
|
|
134
|
+
|
|
131
135
|
type Row = Record<string, unknown>
|
|
132
136
|
type LoadFn = (params: { offset: number, limit: number }) => Promise<{ data: Row[]; total: number }>
|
|
133
137
|
|
|
@@ -254,4 +258,9 @@
|
|
|
254
258
|
}
|
|
255
259
|
}
|
|
256
260
|
|
|
261
|
+
function refreshTable() {
|
|
262
|
+
currentPage.value = 1;
|
|
263
|
+
refresh();
|
|
264
|
+
}
|
|
265
|
+
|
|
257
266
|
</script>
|