Skip to content

Commit 541f542

Browse files
susnuxShGKme
andauthored
fixup!
Co-authored-by: Grigorii K. Shartsev <[email protected]> Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent d61337f commit 541f542

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/NcButton/NcButton.vue

+8-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,14 @@ const emit = defineEmits<{
638638
(e: 'update:pressed', pressed: boolean): void
639639
}>()
640640

641-
const slots = useSlots()
641+
import type { Slot } from 'vue'
642+
643+
const slots = defineSlots<{
644+
/** docs */
645+
default?: Slot,
646+
/** docs */
647+
icon?: Slot,
648+
}>()
642649

643650
// Make sure the component also works if the app does not use any router
644651
// And if the app uses a router we need to make sure a `to` prop was passed to use to router

0 commit comments

Comments
 (0)