v-if 控制的兄弟元素div渲染到页面后的顺序问题 #14378
Unanswered
vonlin
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
有这么个场景,有两个div,第一个div用v-if 控制,里面传递一个返回boolean类型的函数,他后面紧跟一个兄弟元素,没有加v-if,测试在线上环境偶尔会点出来加了v-if的元素渲染在没有加v-if的元素后面,想了各种可能,找不到原因,有想过全局样式污染,浏览器缩放,浏览器插件,浏览器F12后资源文件的替换,都一一被排除,最终没有找到原因,求助各位大佬,这个可能是什么原因导致的,或者有没有大佬遇到过类似的问题场景,Help!!!
版本:vue@3.3.11
Beta Was this translation helpful? Give feedback.
All reactions