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:
parent
f5fa2e07f4
commit
eb873f0482
@ -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>
|
||||
|
@ -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)"
|
||||
|
Loading…
x
Reference in New Issue
Block a user