fix(app): 统一 gap 样式,移除无效的属性

This commit is contained in:
2026-03-09 08:18:59 +08:00
parent 2d805cf02d
commit 02237e3e30
4 changed files with 13 additions and 13 deletions

View File

@@ -281,4 +281,8 @@ html {
line-height: 1;
}
}
.n-flex {
gap: 10px !important;
}
</style>

View File

@@ -33,7 +33,7 @@
label-placement="left"
label-width="auto"
>
<n-flex gap="small">
<n-flex>
<n-form-item label="首项:">
<n-input-number
v-model:value="modes.as.first"
@@ -57,7 +57,7 @@
></n-input-number>
</n-form-item>
</n-flex>
<n-flex gap="small">
<n-flex>
<n-form-item label="选项:">
<n-checkbox
v-model:checked="modes.as.zero"
@@ -83,7 +83,7 @@
label-placement="left"
label-width="auto"
>
<n-flex gap="small">
<n-flex>
<n-form-item label="首项:">
<n-input-number
v-model:value="modes.ps.first"
@@ -107,7 +107,7 @@
></n-input-number>
</n-form-item>
</n-flex>
<n-flex gap="small">
<n-flex>
<n-form-item label="选项:">
<n-checkbox
v-model:checked="modes.ps.zero"
@@ -133,7 +133,7 @@
label-placement="left"
label-width="auto"
>
<n-flex gap="small" align-items="center">
<n-flex align-items="center">
<n-form-item label="从:">
<n-input
v-model:value="modes.lc.start"
@@ -163,7 +163,7 @@
<!-- 操作 -->
<n-card size="small" title="操作">
<n-flex gap="small">
<n-flex>
<n-button
type="primary"
@click="handleGenerate"

View File

@@ -1342,12 +1342,8 @@ onBeforeUnmount(() => {
<style lang="less" scoped>
.actions {
.n-flex {
gap: 10px !important;
&:not(:first-child) {
margin-top: 10px;
}
.n-flex:not(:first-child) {
margin-top: 10px;
}
}

View File

@@ -11,7 +11,7 @@
<!-- 操作 -->
<n-card size="small" title="操作">
<n-flex justify="center" gap="12">
<n-flex justify="center">
<n-button
type="success"
:disabled="data.isRunning"