Full Changelog: 3.1.4...3.1.5
Add the v3model
snippet:
const title = defineModel('title', { required: true })
Updated the v3emits
snippet:
const emit = defineEmits<{
foo: [id: number]
bar: [name: string, ...rest: any[]]
}>()
Updated thev3slots
snippet:
const slots = defineSlots<{
default?: (props: { msg: string }) => any
item?: (props: { id: number }) => any
}>()