100 lines
1.7 KiB
Vue
100 lines
1.7 KiB
Vue
<template>
|
||
<div class="page">
|
||
<section class="card">
|
||
<div class="head">
|
||
<p class="tag">系统设置</p>
|
||
<h2 class="header">配置入口</h2>
|
||
<p class="desc">设置页只保留入口,具体配置在独立页面中维护。</p>
|
||
</div>
|
||
<div class="entries">
|
||
<t-button block variant="outline" @click="openConnectSetting">
|
||
连接配置
|
||
</t-button>
|
||
<t-button block variant="outline" @click="openDashboardSetting">
|
||
仪表板
|
||
</t-button>
|
||
<t-button block variant="outline" @click="openThemeSetting">
|
||
主题
|
||
</t-button>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
defineOptions({
|
||
name: "SettingsTab"
|
||
});
|
||
|
||
const router = useRouter();
|
||
|
||
function openConnectSetting(): void {
|
||
void router.push("/settings/connect");
|
||
}
|
||
|
||
function openDashboardSetting(): void {
|
||
void router.push("/settings/dashboard");
|
||
}
|
||
|
||
function openThemeSetting(): void {
|
||
void router.push("/settings/theme");
|
||
}
|
||
</script>
|
||
|
||
<style scoped lang="less">
|
||
.page {
|
||
gap: 1rem;
|
||
display: flex;
|
||
padding: 1rem;
|
||
flex-direction: column;
|
||
|
||
.card {
|
||
gap: 1rem;
|
||
display: flex;
|
||
padding: 1rem;
|
||
border-radius: 1rem;
|
||
flex-direction: column;
|
||
border: 1px solid var(--app-line);
|
||
background: var(--app-card);
|
||
box-shadow: 0 .35rem 1rem rgba(17, 32, 56, .05);
|
||
}
|
||
|
||
.head {
|
||
gap: .5rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
.tag,
|
||
.desc {
|
||
margin: 0;
|
||
color: var(--app-sub);
|
||
}
|
||
|
||
.tag {
|
||
font-size: .875rem;
|
||
}
|
||
|
||
.header {
|
||
margin: 0;
|
||
font-size: 1.25rem;
|
||
}
|
||
|
||
.desc {
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.entries {
|
||
gap: .75rem;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
}
|
||
|
||
:global(.theme-dark) .page {
|
||
.card {
|
||
box-shadow: 0 .35rem 1rem rgba(0, 0, 0, .2);
|
||
}
|
||
}
|
||
</style>
|