This commit is contained in:
expdsn 2024-09-29 15:31:47 +08:00
parent 1eb9a6e0d6
commit 5dddc19d76
2 changed files with 26 additions and 38 deletions

View File

@ -61,7 +61,6 @@ export default defineComponent(() => {
<Button type="primary" icon={<SwapOutlined />} <Button type="primary" icon={<SwapOutlined />}
onClick={()=> { onClick={()=> {
router.path = '' router.path = ''
router.path = 's2-background'
}}> }}>
</Button> </Button>

View File

@ -52,44 +52,33 @@ export default defineComponent(() => {
<Transition name="settings"> <Transition name="settings">
{show.value && ( {show.value && (
<div class="absolute left-6 bottom-20 w-[600px] h-[480px] rounded-lg overflow-hidden shadow-2xl flex"> <div class="absolute left-6 bottom-20 w-[600px] h-[480px] rounded-lg overflow-hidden shadow-2xl flex">
{ <div class="w-[200px] p-4 h-full bg-white/60 backdrop-blur flex flex-col">
router.path.startsWith('settings-') ? <div
<> class={
<div class="w-[200px] p-4 h-full bg-white/60 backdrop-blur flex flex-col"> 'w-full h-0 flex-grow mb-4 rounded-lg hover:bg-white/70 transition-all cursor-pointer flex justify-center items-center ' +
<div (router.path === 'settings-user' ? 'bg-white/70 shadow-lg' : '')
class={ }
'w-full h-0 flex-grow mb-4 rounded-lg hover:bg-white/70 transition-all cursor-pointer flex justify-center items-center ' + onClick={() => {
(router.path === 'settings-user' ? 'bg-white/70 shadow-lg' : '') router.path = 'settings-user'
} }}
onClick={() => { >
router.path = 'settings-user' <div class="w-12 h-12 relative">
}} <AvatarCircle />
> </div>
<div class="w-12 h-12 relative"> </div>
<AvatarCircle /> <SettingsTab label="壁纸" path="settings-background" />
</div> <SettingsTab label="图标" path="settings-block" />
</div> <SettingsTab label="搜索" path="settings-search" />
<SettingsTab label="壁纸" path="settings-background" /> <SettingsTab label="时间" path="settings-time" />
<SettingsTab label="图标" path="settings-block" /> <SettingsTab label="侧边栏" path="settings-sider" />
<SettingsTab label="搜索" path="settings-search" /> <SettingsTab label="AI助手" path="settings-ai" />
<SettingsTab label="时间" path="settings-time" /> <SettingsTab label="快捷栏" path="settings-dock" />
<SettingsTab label="侧边栏" path="settings-sider" /> <SettingsTab label="重置" path="settings-reset" />
<SettingsTab label="AI助手" path="settings-ai" /> <SettingsTab label="问题反馈" path="settings-fallback" />
<SettingsTab label="快捷栏" path="settings-dock" /> </div>
<SettingsTab label="重置" path="settings-reset" /> <Content />
<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> </div>
)} )}