Skip to content

Commit c14d01b

Browse files
authored
Merge pull request #377 from devforth/AdminForth/871
feat: add emit of afcl table state
2 parents e78924f + 9a359a3 commit c14d01b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

adminforth/spa/src/afcl/Table.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@
177177
columnWidths.value = !headerRefs.value ? [] : headerRefs.value.map((el: HTMLElement) => el.offsetWidth);
178178
});
179179
180+
watch([isLoading, () => props.isLoading], () => {
181+
emit('update:tableLoading', isLoading.value || props.isLoading);
182+
});
183+
180184
const totalPages = computed(() => {
181185
return dataResult.value?.total ? Math.ceil(dataResult.value.total / props.pageSize) : 1;
182186
});
@@ -190,8 +194,8 @@
190194
pageInput.value = p.toString();
191195
}
192196
193-
const emites = defineEmits([
194-
'update:activeTab',
197+
const emit = defineEmits([
198+
'update:tableLoading',
195199
]);
196200
197201
function onPageInput(event: any) {

0 commit comments

Comments
 (0)