1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-01 16:38:02 +08:00

fix: sidebar responsive show trigger style

Signed-off-by: Kaifuny <superbiger.github@gmail.com>
This commit is contained in:
Kaifuny 2023-08-09 09:03:16 +08:00
parent f5fa2e07f4
commit eb873f0482
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,8 @@ import { NTabs, NTab } from 'naive-ui'
<template>
<div class="p-4">
<n-tabs type="line" :bar-width="32">
<n-tab name="setting"> 设置 </n-tab>
<n-tab name="meta-data"> 元数据 </n-tab>
<n-tab name="dictionary"> 字典 </n-tab>
</n-tabs>
</div>
</template>

View File

@ -66,7 +66,7 @@ defineEmits(['update:collapsed'])
:width="280"
:collapsed="collapsed"
bordered
show-trigger="bar"
:show-trigger="width < 600 ? 'arrow-circle' : 'bar'"
collapse-mode="width"
@collapse="$emit('update:collapsed', true)"
@expand="$emit('update:collapsed', false)"