html
<transition name="component" appear>
<cim v-if="type==0" ></cim>
</transition>
css
.component-enter-active,
.component-leave-active {
transition: all 1s;
}
.component-enter {
transform: translateY(100%);
opacity: 0;
}
.component-leave-to {
transform: translateY(200%);
opacity: 0;
}