This commit is contained in:
xuyue committed 2024-01-23 14:43:15 +08:00
1 parent 946ec691af
commit d7acc3e653
2 files changed
+8 -10

No files matched your search

+6 -3
View File
@@ -39,15 +39,15 @@ function changeSize(v: number) {
<n-tab-pane name="setting" tab="设置">
<n-flex size="large" vertical class="setting">
<n-flex align="center">
<span>主题</span>
<span class="label">主题</span>
<ThemeButton />
</n-flex>
<n-flex align="center">
<span>语言</span>
<span class="label">语言</span>
<SelectLanguage />
</n-flex>
<n-flex align="center">
<span>字号</span>
<span class="label">字号</span>
<n-flex align="center">
<span :style="{ 'font-size': size + 'px' }">{{ size }}</span>
<n-button @click="changeSize(size - 2)" :disabled="size === 20">
@@ -67,4 +67,7 @@ function changeSize(v: number) {
.setting {
padding: 0 12px;
}
.label {
font-size: 16px;
}
</style>
+2 -7
View File
@@ -26,14 +26,9 @@ const menu: DropdownOption[] = [
<div class="title">徐越的自测猫</div>
<n-flex align="center">
<n-dropdown :options="menu">
<n-button size="small">操作</n-button>
<n-button>操作</n-button>
</n-dropdown>
<n-button
size="small"
type="primary"
:disabled="loading"
@click="switchAndRun"
>
<n-button type="primary" :disabled="loading" @click="switchAndRun">
运行
</n-button>
</n-flex>