vue实现鼠标移入移出事件

        
{{item.name}}
{{item.det}}
  export default {
    data(){
      return{
        seen:false,
        current:0
      }
    },
    methods:{
      enter(index){
        this.seen = true;
        this.current = index;
      },
      leave(){
        this.seen = false;
        this.current = null;
      }
    }
  }

 

你可能感兴趣的:(vue-js,vue)