1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 15:40:21 +08:00

3 Commits

Author SHA1 Message Date
qiaofugui
8aa2a91b72 Merge 6f38034c14 into 005aa60982 2024-05-08 09:50:57 +08:00
大脸怪
005aa60982 docs: Update README 2024-05-08 09:50:27 +08:00
qiaoronggui
6f38034c14 fix: 路由标签较多,屏幕较窄情况下没有左右滚动条 2024-04-30 09:55:23 +08:00
2 changed files with 25 additions and 16 deletions

View File

@@ -73,3 +73,9 @@ Vue Naive Admin 提供一套后端代码,技术栈使用 Nestjs + TypeOrm + My
- [isme-java-serve](https://github.com/DHBin/isme-java-serve): 一个轻量级的Java后端服务基于SpringBoot、MybatisPlus、SaToken、MapStruct等实现已对接 Vue Naive Admin 2.0。
- [naive-admin-go](https://github.com/ituserxxx/naive-admin-go): 一个 Go 后端服务,基于 gin、gorm、mysql、jwt和session已对接 Vue Naive Admin 2.0。
## 入群交流
添加微信,拉你进群
![](https://static.isme.top/image/coder_wx.jpg)

View File

@@ -8,23 +8,26 @@
<template>
<div>
<n-tabs
:value="tabStore.activeTab"
:closable="tabStore.tabs.length > 1"
:style="`--selected-bg: ${appStore.isDark ? '#1b2429' : '#eaf0f1'}`"
type="card"
@close="(path) => tabStore.removeTab(path)"
>
<n-tab
v-for="item in tabStore.tabs"
:key="item.path"
:name="item.path"
@click="handleItemClick(item.path)"
@contextmenu.prevent="handleContextMenu($event, item)"
<n-scrollbar x-scrollable>
<n-tabs
:value="tabStore.activeTab"
:closable="tabStore.tabs.length > 1"
class="py-10"
:style="`--selected-bg: ${appStore.isDark ? '#1b2429' : '#eaf0f1'}`"
type="card"
@close="(path) => tabStore.removeTab(path)"
>
{{ item.title }}
</n-tab>
</n-tabs>
<n-tab
v-for="item in tabStore.tabs"
:key="item.path"
:name="item.path"
@click="handleItemClick(item.path)"
@contextmenu.prevent="handleContextMenu($event, item)"
>
{{ item.title }}
</n-tab>
</n-tabs>
</n-scrollbar>
<ContextMenu
v-if="contextMenuOption.show"