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> <template>
<div class="p-4"> <div class="p-4">
<n-tabs type="line" :bar-width="32"> <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> </n-tabs>
</div> </div>
</template> </template>

View File

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