Skip to content

Commit 5368d18

Browse files
authored
fix(ui): slot type error (#378)
1 parent a737b81 commit 5368d18

File tree

1 file changed

+1
-1
lines changed
  • packages/ui/src/components/NuTag

1 file changed

+1
-1
lines changed

packages/ui/src/components/NuTag/Item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useSlots } from 'vue'
33
44
const slots = useSlots()
55
6-
function hasSlot(name: string) {
6+
function hasSlot(name: 'pre' | 'post') {
77
return !!slots[name]
88
}
99
</script>

0 commit comments

Comments
 (0)