Skip to content

Commit 77de31d

Browse files
authored
Update v-model.md (#2686)
the pre 3.4 usage is missing the required: true property
1 parent 1ccf98c commit 77de31d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/guide/components/v-model.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,11 @@ const title = defineModel('title', { required: true })
209209
```vue
210210
<!-- MyComponent.vue -->
211211
<script setup>
212-
defineProps(['title'])
212+
defineProps({
213+
title: {
214+
required: true
215+
}
216+
})
213217
defineEmits(['update:title'])
214218
</script>
215219

0 commit comments

Comments
 (0)