<template>
<div class="type-nav">
<div class="container">
<div @mouseleave="leaveShow" @mouseenter="enterShow">
<h2 class="all">全部商品分类</h2>
<!-- 过渡动画 -->
<transition name="sort">
<div class="sort" v-show="show">
<div class="all-sort-list2" @click="goSearch">
<div
class="item"
v-for="(c1, index) in categoryList"
:key="c1.categoryId"
>
<h3
:class="{ cur: currentIndex == index }"
@mouseenter="changeIndex(index)"
>
<a
:data-categoryName="c1.categoryName"
vue里的三级树形结构
最新推荐文章于 2024-08-07 16:39:40 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)