-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
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
[Component] [input] v-show使用初始化变量控制显示或隐藏时不起作用 #15864
Labels
Comments
似乎是vue的问题,切换到 3.4.17就可以了。 rel vuejs/core#10338 |
vue中使用原生的示例没问题,就是 <script setup>
import { ref } from 'vue'
const msg = ref('Hello World!')
const bool1 = ref(false)
</script>
<template>
<h1>{{ msg }}</h1>{{bool1}}
<input v-model="bool1" type="checkbox" />
<input v-show="bool1" v-model="msg" />
</template> |
@wangnamin 看来3.4.19都还没修复, 考虑降级锁定到3.4.15 |
好的 |
3 tasks
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. 此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Type:
Component
Environment
3.4.19
2.5.5
Chrome版本 121.0.6167.185(正式版本) (64 位)
Webpack
Reproduction
Related Component
el-input
Reproduction Link
Element Plus Playground
Steps to reproduce
点击Playground链接可以直接查看效果
What is Expected?
初始化时v-show的值为false,input控件应该是不显示的
What is actually happening?
【初始化】时v-show的值为false,但是input控件还是显示出来了
Additional comments
在示例中还放置了一个
el-switch
作为对比,是正常的,只有el-input
有问题The text was updated successfully, but these errors were encountered: