ã³ã³ãã¼ãã³ãã® v-model âåºæ¬çãªä½¿ãæ¹ âã³ã³ãã¼ãã³ãä¸ã§ v-model ã使ç¨ããã¨åæ¹åãã¤ã³ãã£ã³ã°ãå®è£ ã§ãã¾ãã vue<!-- Child.vue --> <script setup> const model = defineModel() function update() { model.value++ } </script> <template> <div>Parent bound v-model is: {{ model }}</div> <button @click="update">Increment</button> </template>
{{#tags}}- {{label}}
{{/tags}}