Skip to content

Commit df06a7b

Browse files
committed
fix: correct tri-state sorting description in documentation and update sortDirection emission behavior
1 parent a8f54b6 commit df06a7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adminforth/documentation/docs/tutorial/03-Customization/15-afcl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ async function loadPageData(data) {
978978
Table supports column sorting out of the box.
979979

980980
- By default, columns are NOT sortable. Enable sorting per column with `sortable: true`.
981-
- Clicking a sortable header cycles sorting in a tristate order:
981+
- Clicking a sortable header cycles sorting in a tri-state order:
982982
- none → ascending → descending → none
983983
- When it returns to "none", the sorting is cleared.
984984

adminforth/spa/src/afcl/Table.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@
216216
emit('update:sortField', currentSortField.value);
217217
emit('update:sortDirection', currentSortField.value ? currentSortDirection.value : undefined);
218218
emit('sort-change', { field: currentSortField.value, direction: currentSortDirection.value });
219-
});
219+
}, { immediate: false });
220220
221221
const totalPages = computed(() => {
222222
return dataResult.value?.total ? Math.ceil(dataResult.value.total / props.pageSize) : 1;

0 commit comments

Comments
 (0)