Skip to content

Commit

Permalink
chore(ktabledata): fix type resolve issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TT1228 committed Nov 12, 2024
1 parent 00665a2 commit 9016cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/KTableData/KTableData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ const stateData = computed((): SwrvStateData => ({
const tableState = computed((): TableState => isTableLoading.value ? 'loading' : fetcherError.value ? 'error' : 'success')
const { debouncedFn: debouncedRevalidate, generateDebouncedFn: generateDebouncedRevalidate } = useDebounce(_revalidate, 500)
const revalidate = generateDebouncedRevalidate(0) // generate a debounced function with zero delay (immediate)
// defineExpose({ revalidate }) // expose revalidate function to parent component
defineExpose({ revalidate: _revalidate as () => Promise<void> }) // expose revalidate function to parent component
const sortHandler = ({ sortColumnKey: columnKey, prevKey, sortColumnOrder: sortOrder }: TableSortPayload): void => {
const header: TableDataHeader = tableHeaders.value.find((header) => header.key === columnKey)!
Expand Down

0 comments on commit 9016cf3

Please sign in to comment.