Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions adminforth/spa/src/afcl/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@
columnWidths.value = !headerRefs.value ? [] : headerRefs.value.map((el: HTMLElement) => el.offsetWidth);
});
watch([isLoading, () => props.isLoading], () => {
emit('update:tableLoading', isLoading.value || props.isLoading);
});
const totalPages = computed(() => {
return dataResult.value?.total ? Math.ceil(dataResult.value.total / props.pageSize) : 1;
});
Expand All @@ -190,8 +194,8 @@
pageInput.value = p.toString();
}
const emites = defineEmits([
'update:activeTab',
const emit = defineEmits([
'update:tableLoading',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yaroslav8765 please add example in docs, otherwise this will be forgotten forever as we discussed

]);
function onPageInput(event: any) {
Expand Down