Skip to content

Commit

Permalink
Update v-model.md (#2686)
Browse files Browse the repository at this point in the history
the pre 3.4 usage is missing the required: true property
  • Loading branch information
CDT committed Feb 5, 2024
1 parent 1ccf98c commit 77de31d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/guide/components/v-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,11 @@ const title = defineModel('title', { required: true })
```vue
<!-- MyComponent.vue -->
<script setup>
defineProps(['title'])
defineProps({
title: {
required: true
}
})
defineEmits(['update:title'])
</script>
Expand Down

0 comments on commit 77de31d

Please sign in to comment.