This commit is contained in:
van
2026-04-07 17:29:30 +08:00
parent a2263eeef9
commit 8addb6080c
9 changed files with 835 additions and 89 deletions
+6 -2
View File
@@ -2,7 +2,7 @@
<div class="mobile-bottom-nav" :class="{ 'scrollable': navItems.length > 5 }" v-if="isMobile && show">
<div
v-for="item in navItems"
:key="item.path"
:key="item.path || item.label || item.icon"
class="nav-item"
:class="{ 'active': isActive(item.path) }"
@click="handleNavClick(item)"
@@ -148,7 +148,7 @@ export default {
background: #fff;
border-top: 1px solid #e4e7ed;
display: flex;
justify-content: flex-start;
justify-content: center;
align-items: center;
z-index: 1000;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
@@ -164,6 +164,10 @@ export default {
}
-ms-overflow-style: none;
scrollbar-width: none;
&.scrollable {
justify-content: flex-start;
}
.nav-item {
flex: 0 0 auto;