多个动态组件的transition有问题
粉丝福利 : 关注VUE中文社区公众号,回复视频领取粉丝福利
<transition
v-for="(v, i) in fra"
:key=“v.id”
appear
mode=“out-in”
:duration=“400”
name=“fade”
:enter-active-class=“getClass(v, ‘in’)”
:leave-active-class=“getClass(v, ‘out’)”
>
<div [@click](/user/click)=“add(‘left’)” style=“position: absolute;left: 300px;top: 113px;z-index: 1;”>添加左边
<div [@click](/user/click)=“add(‘right’)” style=“position: absolute;left: 400px;top: 113px;z-index: 1;”>添加右边
<div [@click](/user/click)=“del(0)” style=“position: absolute;left: 500px;top: 113px;z-index: 1;”>删除第一个
<div [@click](/user/click)=“del(1)” style=“position: absolute;left: 500px;top: 113px;z-index: 1;”>删除第二个