You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I write the binding in the parent component, using concise mode is not effective(). It is not a problem to write it in this way in other components. Is there a problem with where I wrote it? Please help me take a look, thank you!
this is my parent component
<template>
<div>
<el-button @click="console.log(code)">check1</el-button>
<CodeEdit v-model:code="code" />
// there is no problem using the following method
<!-- <CodeEdit
:code="code"
@update:value="
newVal => {
code = newVal
}
"
/> -->
</div>
</template>
<script setup lang="ts">
import { ref } from "vue"
import CodeEdit from "./CodeEdit.vue"
const code = ref("")
</script>
Describe the bug
When I write the binding in the parent component, using concise mode is not effective(). It is not a problem to write it in this way in other components. Is there a problem with where I wrote it? Please help me take a look, thank you!
this is my parent component
this is my subcomponents
Reproduction
.
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: