<script setup>
const val = defineModel()
</script>
<template>
<div class="f1 col">
<div>{{ { type: typeof val, val: val.slice(0, 10) } }}</div>
<input
class="input1"
:value="String(val)"
@input="(e) => (val = e.target.value)"
/>
</div>
</template>
"vue": "^3.5.13"
"webpack": "^5.96.1"
"mp-webpack-plugin": "^1.6.6"
val是hello, 输入框也显示helloval是hello, 但输入框为空 !!!!