save
This commit is contained in:
parent
1eb9a6e0d6
commit
5dddc19d76
|
@ -61,7 +61,6 @@ export default defineComponent(() => {
|
|||
<Button type="primary" icon={<SwapOutlined />}
|
||||
onClick={()=> {
|
||||
router.path = ''
|
||||
router.path = 's2-background'
|
||||
}}>
|
||||
更换壁纸
|
||||
</Button>
|
||||
|
|
|
@ -52,44 +52,33 @@ export default defineComponent(() => {
|
|||
<Transition name="settings">
|
||||
{show.value && (
|
||||
<div class="absolute left-6 bottom-20 w-[600px] h-[480px] rounded-lg overflow-hidden shadow-2xl flex">
|
||||
{
|
||||
router.path.startsWith('settings-') ?
|
||||
<>
|
||||
<div class="w-[200px] p-4 h-full bg-white/60 backdrop-blur flex flex-col">
|
||||
<div
|
||||
class={
|
||||
'w-full h-0 flex-grow mb-4 rounded-lg hover:bg-white/70 transition-all cursor-pointer flex justify-center items-center ' +
|
||||
(router.path === 'settings-user' ? 'bg-white/70 shadow-lg' : '')
|
||||
}
|
||||
onClick={() => {
|
||||
router.path = 'settings-user'
|
||||
}}
|
||||
>
|
||||
<div class="w-12 h-12 relative">
|
||||
<AvatarCircle />
|
||||
</div>
|
||||
</div>
|
||||
<SettingsTab label="壁纸" path="settings-background" />
|
||||
<SettingsTab label="图标" path="settings-block" />
|
||||
<SettingsTab label="搜索" path="settings-search" />
|
||||
<SettingsTab label="时间" path="settings-time" />
|
||||
<SettingsTab label="侧边栏" path="settings-sider" />
|
||||
<SettingsTab label="AI助手" path="settings-ai" />
|
||||
<SettingsTab label="快捷栏" path="settings-dock" />
|
||||
<SettingsTab label="重置" path="settings-reset" />
|
||||
<SettingsTab label="问题反馈" path="settings-fallback" />
|
||||
</div>
|
||||
<Content />
|
||||
</>
|
||||
:
|
||||
router.path.startsWith('s2') ?
|
||||
<>
|
||||
<div class="w-full h-full flex justify-center items-center bg-red-300">
|
||||
</div>
|
||||
</>
|
||||
: ''
|
||||
<div class="w-[200px] p-4 h-full bg-white/60 backdrop-blur flex flex-col">
|
||||
<div
|
||||
class={
|
||||
'w-full h-0 flex-grow mb-4 rounded-lg hover:bg-white/70 transition-all cursor-pointer flex justify-center items-center ' +
|
||||
(router.path === 'settings-user' ? 'bg-white/70 shadow-lg' : '')
|
||||
}
|
||||
onClick={() => {
|
||||
router.path = 'settings-user'
|
||||
}}
|
||||
>
|
||||
<div class="w-12 h-12 relative">
|
||||
<AvatarCircle />
|
||||
</div>
|
||||
</div>
|
||||
<SettingsTab label="壁纸" path="settings-background" />
|
||||
<SettingsTab label="图标" path="settings-block" />
|
||||
<SettingsTab label="搜索" path="settings-search" />
|
||||
<SettingsTab label="时间" path="settings-time" />
|
||||
<SettingsTab label="侧边栏" path="settings-sider" />
|
||||
<SettingsTab label="AI助手" path="settings-ai" />
|
||||
<SettingsTab label="快捷栏" path="settings-dock" />
|
||||
<SettingsTab label="重置" path="settings-reset" />
|
||||
<SettingsTab label="问题反馈" path="settings-fallback" />
|
||||
</div>
|
||||
<Content />
|
||||
|
||||
|
||||
}
|
||||
|
||||
</div>
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue