<div class="index_tableTitle clearfix" v-for="(item,index) in table_tit">
          <div class="indexItem">
            <span :title="item.name">{{item.name}}</span>
            <span class="mypor">
              <i class="icon" @mouseenter="enter(index)" @mouseleave="leave()"></i>
              <div v-show="seen&&index==current" class="index-show">
                <div  class="tip_Wrapinner">{{item.det}}</div>
              </div>
            </span>
          </div>
        </div>
  export default {
    data(){
      return{
        seen:false,
        current:0
      }
    },
    methods:{
      enter(index){
        this.seen = true;
        this.current = index;
      },
      leave(){
        this.seen = false;
        this.current = null;
      }
    }
  }

 

Logo

前往低代码交流专区

更多推荐