VUE horizontal 3-level menu problem, how to judge, the mouse over the secondary option, you can display the corresponding three-level menu.

if the corresponding three-level menu is displayed when the mouse passes over the secondary menu

< el-menu-item index= "1" style= "width: 68px" @ mouseover.native= "show=true" @ mouseout.native= "show=false" > Product

            <div v-show="show" class="menu_list" v-for="(item,index) in items">
              <li @mouseover="showList=true" @mouseout="showList=false" >{{item.a}}
                <div v-show="showList" class="menu_tree">
                  <el-col>
                    <span class="menu_sm"></span>
                    <span class="menu_sm"></span>
                    <span class="menu_sm"></span>
                    <span class="menu_sm"></span>
                    <span class="menu_sm"></span>
                    <span class="menu_sm"></span>
                  </el-col>
                </div>
              </li>
            </div>
          </el-menu-item>
          

< script >

export default {
  name: "header",
  data() {
    return{
      show: false,
      showList: false,
      items:[
        {
          "a":"1",
          "children":[
            {
              "znzd":"",
              "znbsq":"",
              "aql":"",
              "glq":"",
              "wzjly":"",
              "lybhq":"",
              "gcjyy":"",

            }
          ]
        },
        {
          "a":"2",
          "children":[
            {
              "znzd":"1",
            }
          ]
        },
        {
          "a":"",
          "children":[
            {
              "znzd":"1",
            }
          ]
        },
        {
          "a":"",
          "children":[
            {
              "znzd":"1",
            }
          ]
        }
      ]
    }
  },
  methods:{
    getIndex:function (index) {

    }
  }
}

< / script >

Jul.07,2022

use css

the third-level menu hides display: none by default, adds a : hover style to the corresponding second-level menu of the third-level menu, and allows the corresponding three-level menu to be displayed in the hover state. If you need animation, how to implement the type

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8bdd4-46e67.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8bdd4-46e67.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?