在使用 v-for 时,交换或移动列表中的元素,出现 CSS 过渡动画丢失 #8867
Answered
by
Shyam-Chen
WBBB0730
asked this question in
Help/Questions
-
我在尝试实现一个类似于 Steam 愿望单的拖拽排序,但是在过程中发现,在移动列表中的元素位置时,如果移动的目标位置与原位置相邻,则后面的元素会丢失 CSS 过渡动画。 写了个简单的 demo 测试
测试结果: 希望了解 Vue 源码的大佬帮忙解答一下 |
Beta Was this translation helpful? Give feedback.
Answered by
Shyam-Chen
Jul 30, 2023
Replies: 1 comment
Answer selected by
WBBB0730
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://vuejs.org/guide/built-ins/transition-group.html