@globalbrain/sefirot 2.47.0 → 2.47.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,7 +29,7 @@ const stats = computed(() => {
|
|
|
29
29
|
// deprecated `reset` prop in favor of `actions`, remove this in next major version
|
|
30
30
|
const resetAction = computed(() => {
|
|
31
31
|
return props.reset
|
|
32
|
-
? [{ label: 'Reset filters', onClick: props.onReset
|
|
32
|
+
? [{ label: 'Reset filters', onClick: props.onReset!, type: 'info' }] // onReset is required when reset is true
|
|
33
33
|
: []
|
|
34
34
|
})
|
|
35
35
|
</script>
|
package/lib/composables/Table.ts
CHANGED
|
@@ -191,7 +191,7 @@ export interface TableAction {
|
|
|
191
191
|
mode?: 'neutral' | 'mute' | 'info' | 'success' | 'warning' | 'danger'
|
|
192
192
|
label: string
|
|
193
193
|
labelMode?: 'neutral' | 'mute' | 'info' | 'success' | 'warning' | 'danger'
|
|
194
|
-
onClick
|
|
194
|
+
onClick(): void
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
export function useTable<
|