dev #1

Merged
caoxiaozhu merged 8 commits from dev into main 2026-07-14 11:26:14 +08:00
3 changed files with 90 additions and 30 deletions
Showing only changes of commit 0917206191 - Show all commits

View File

@@ -128,19 +128,19 @@ function ariaLabel(label: string) {
} }
.dataset-split-row { .dataset-split-row {
align-items: stretch; align-items: flex-start;
flex-direction: column;
} }
.dataset-split-config { .dataset-split-config {
display: grid; display: grid;
gap: 10px; gap: 10px;
flex: 0 0 460px;
} }
.dataset-split-grid { .dataset-split-grid {
display: grid; display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px; gap: 12px;
} }
.dataset-split-field { .dataset-split-field {
@@ -173,6 +173,15 @@ function ariaLabel(label: string) {
} }
@media (max-width: 900px) { @media (max-width: 900px) {
.dataset-split-row {
flex-direction: column;
align-items: stretch;
}
.dataset-split-config {
flex: auto;
}
.dataset-split-grid { .dataset-split-grid {
grid-template-columns: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
} }

View File

@@ -191,6 +191,7 @@ function updatePreprocessOptions(value: Array<string | number | boolean>) {
} }
.preprocess-option { .preprocess-option {
display: flex;
width: 100%; width: 100%;
min-height: 64px; min-height: 64px;
margin-right: 0; margin-right: 0;

View File

@@ -131,35 +131,28 @@ defineExpose({ revealValidation })
<p>默认使用推荐策略只需决定是否需要脱敏</p> <p>默认使用推荐策略只需决定是否需要脱敏</p>
</div> </div>
</div> </div>
<div class="generation-option-list compact-option-list"> <div class="preprocess-option-grid">
<div class="generation-option-row"> <label class="preprocess-option" :class="{ 'is-checked': smartPreprocessEnabled }">
<div class="generation-option-copy"> <el-checkbox
<strong>智能预处理</strong>
<small>自动完成内容清理结构解析短段合并质量过滤去重及上下文保留</small>
</div>
<el-switch
:model-value="smartPreprocessEnabled" :model-value="smartPreprocessEnabled"
aria-label="智能预处理"
inline-prompt
active-text=""
inactive-text=""
@update:model-value="updateSmartPreprocess" @update:model-value="updateSmartPreprocess"
/> />
</div> <span class="preprocess-option-copy">
<div class="generation-option-row"> <strong>智能预处理</strong>
<div class="generation-option-copy"> <small>自动清理解析去重及保留上下文</small>
<strong>敏感信息脱敏</strong> </span>
<small>处理姓名手机号邮箱和证件号等信息</small> </label>
</div>
<el-switch <label class="preprocess-option" :class="{ 'is-checked': desensitizeEnabled }">
<el-checkbox
:model-value="desensitizeEnabled" :model-value="desensitizeEnabled"
aria-label="敏感信息脱敏"
inline-prompt
active-text=""
inactive-text=""
@update:model-value="updateDesensitize" @update:model-value="updateDesensitize"
/> />
</div> <span class="preprocess-option-copy">
<strong>敏感信息脱敏</strong>
<small>处理姓名手机号等隐私信息</small>
</span>
</label>
</div> </div>
</div> </div>
@@ -419,11 +412,59 @@ defineExpose({ revealValidation })
margin-top: 16px; margin-top: 16px;
} }
.compact-option-list { .preprocess-option-grid {
gap: 8px; display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 16px;
}
.generation-option-row { .preprocess-option {
min-height: 58px; display: flex;
width: 100%;
min-height: 64px;
margin-right: 0;
padding: 12px 14px;
box-sizing: border-box;
align-items: flex-start;
border: 1px solid #e2e5ec;
border-radius: 8px;
transition: border-color 0.18s ease, background-color 0.18s ease;
&:hover {
border-color: #b7b2f7;
}
&.is-checked {
background: #fafaff;
border-color: #8b82f4;
}
:deep(.el-checkbox__input) {
margin-top: 3px;
}
:deep(.el-checkbox__label) {
min-width: 0;
padding-left: 10px;
white-space: normal;
}
}
.preprocess-option-copy {
display: grid;
gap: 4px;
strong {
color: #344054;
font-size: 13px;
font-weight: 600;
}
small {
color: #8a93a3;
font-size: 12px;
line-height: 1.5;
} }
} }
@@ -600,5 +641,14 @@ defineExpose({ revealValidation })
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
} }
.advanced-protection-row {
align-items: flex-start;
flex-direction: column;
}
.preprocess-option-grid {
grid-template-columns: minmax(0, 1fr);
}
} }
</style> </style>