Skip to content

transition 动画效果对于通过 vm 新增的数据不能正常执行 #2022

@yangjunjun

Description

@yangjunjun

对于通过 vm 新增数据, v-for 循环生成的元素中使用 v-showtransitionv-show 值为 false的元素,不能真正的隐藏。debug 发现, 元素的最终状态是 class="expand-transition expand-leave" 而不是 display:none. 没有 transition 的显示正常。

重现请看: http://jsbin.com/pecage/edit?html,js,output

另: v1.0.7 版本没这个问题, 之后的版本都有这个问题。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions