Skip to content

allow 2 root nodes with v-if and v-else #3940

Closed
@lincenying

Description

@lincenying

ver: 2.0.3
mac/chrome 53

#3887
看上面的地址说, 修复了 v-if和v-else, 可以允许两个根元素, 但是:
当v-if条件成立时, v-if能正常渲染出来
当v-if条件不成立时, v-else并不会渲染出来

Test:
https://jsfiddle.net/lincenying/h64y6bj1/4/

代码中的button, 并没有渲染出来. ( In the code v-else, does not render it. )

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