diff --git a/lib/components/STableHeader.vue b/lib/components/STableHeader.vue index d814d18b..c96398a3 100644 --- a/lib/components/STableHeader.vue +++ b/lib/components/STableHeader.vue @@ -29,7 +29,7 @@ const stats = computed(() => { // deprecated `reset` prop in favor of `actions`, remove this in next major version const resetAction = computed(() => { return props.reset - ? [{ label: 'Reset filters', onClick: props.onReset, type: 'info' }] + ? [{ label: 'Reset filters', onClick: props.onReset!, type: 'info' }] // onReset is required when reset is true : [] }) diff --git a/lib/composables/Table.ts b/lib/composables/Table.ts index 57f0ee5c..de9b763c 100644 --- a/lib/composables/Table.ts +++ b/lib/composables/Table.ts @@ -191,7 +191,7 @@ export interface TableAction { mode?: 'neutral' | 'mute' | 'info' | 'success' | 'warning' | 'danger' label: string labelMode?: 'neutral' | 'mute' | 'info' | 'success' | 'warning' | 'danger' - onClick?(): void + onClick(): void } export function useTable<