一、配置
//Fade.vue<template><transition><slot name="fade"></slot></transition></template><script>export default {name:"Fade"}</script><style scoped>.v-enter,.v-leave-to{opacity:0;}.v-enter-active,.v-leave-active{transition:opacity .7s;}</style>
二、使用
<fade><template v-slot:fade><p v-if="show">hello world</p></template></fade>
