This commit is contained in:
Leo
2026-01-05 18:59:53 +08:00
parent a3291f7a31
commit 5dc38831eb
2 changed files with 144 additions and 18 deletions

View File

@@ -11,7 +11,10 @@
<settings ref="settingRef"/>
</div>
<!-- 移动端底部导航 -->
<mobile-bottom-nav v-if="device === 'mobile'" />
<mobile-bottom-nav
v-if="device === 'mobile'"
:items="mobileNavItems"
/>
</div>
</template>
@@ -42,6 +45,11 @@ export default {
needTagsView: state => state.settings.tagsView,
fixedHeader: state => state.settings.fixedHeader
}),
mobileNavItems() {
// 可以从配置或store中获取也可以自定义
// 如果返回空数组,组件会使用默认逻辑
return []
},
classObj() {
return {
hideSidebar: !this.sidebar.opened,