We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
超级大BUG
vue3
<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>
val
hello
"vue": "^3.5.13" "webpack": "^5.96.1" "mp-webpack-plugin": "^1.6.6"
The text was updated successfully, but these errors were encountered:
<script setup> import { onMounted, ref, watch } from 'vue' defineProps(['ph']) const val = defineModel() const elm = ref(null) watch(val, update) onMounted(() => update(false)) function update(focus = true) { const e = elm.value if (focus) e.focus() e._oldValues = { focus: true } e.value = val.value || '' } </script> <template> <input ref="elm" class="input1" :placeholder="ph" @input="(e) => (val = e.target.value)" /> </template>
Sorry, something went wrong.
No branches or pull requests
val
是hello
, 输入框也显示hello
val
是hello
, 但输入框为空 !!!!The text was updated successfully, but these errors were encountered: