Skip to content

3.1.5

Latest
Compare
Choose a tag to compare
@CRBroughton CRBroughton released this 29 Dec 12:09
· 3 commits to main since this release
b3c56db

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
}>()