This repository was archived by the owner on May 30, 2025. It is now read-only.
Version 3.1.4
Full Changelog: 3.1.3...3.1.4
Updated the v3emits
snippet Vue 3.3:
interface Emits {
foo: [id: number]
bar: [name: string, ...rest: any[]]
}
const emit = defineEmits<Emits>()
Added the v3slots
snippet:
interface Slots {
default?: (props: { msg: string }) => any
item?: (props: { id: number }) => any
}
const slots = defineSlots<Slots>()
Added the generic component snippet (v3-base-generic):
<script setup lang="ts" generic="T">
const props = defineProps<{
items: T[]
selected: T
}>()
</script>
<template>
<div>
</div>
</template>
<style scoped>
</style>