专题文章
时长:00:00更新时间:2020-11-27 22:07:04
本文实例为大家分享了vue动画封装的具体代码,供大家参考,具体内容如下:this.show; } }})<;/script>,<;style>; .v-enter,.v-leave-to{ opacity: 0; } .v-enter-active, data:{ show:true }, methods:{ handleClick:function(){ this.show =。this.show; } }})<;/script>。有时候这种渐隐渐现的效果用的比较多,要复用,需要封装一下,怎么封装呢。
查看详情