Skip to content

Commit

Permalink
fix(ui): slot type error (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Jan 20, 2025
1 parent a737b81 commit 5368d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/components/NuTag/Item.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useSlots } from 'vue'
const slots = useSlots()
function hasSlot(name: string) {
function hasSlot(name: 'pre' | 'post') {
return !!slots[name]
}
</script>
Expand Down

0 comments on commit 5368d18

Please sign in to comment.