vue.js如何实现移入移出效果
时间:2022-02-11 17:46
vue.js实现移入移出效果的方法:【methods:{enter(index){this.seen = true;this.current = index;},leave(){this.seen = false;this.cur...】。 本文操作环境:windows10系统、vue 2.5.2、thinkpad t480电脑。 vue.js实现移入移出事件的具体代码: html代码: 逻辑代码: 推荐学习:php培训 以上就是vue.js如何实现移入移出效果的详细内容,更多请关注gxlsystem.com其它相关文章!<i class="icon" @mouseenter="enter(index)" @mouseleave="leave()"></i>
methods:{
enter(index){
this.seen = true;
this.current = index;
},
leave(){
this.seen = false;
this.current = null;
}
}