fix(data-process): 调整输出类型选项位置

This commit is contained in:
caoxiaozhu
2026-07-27 13:43:30 +08:00
parent de2e8952b5
commit f3fa5f1a68
2 changed files with 41 additions and 22 deletions

View File

@@ -481,6 +481,16 @@ assert.match(generationControlSource, /maxlength="500"/, '默认提示语缺少
assert.match(generationControlSource, /aria-label="输出类型"/, '输出类型选项缺少可访问名称')
assert.match(generationControlSource, /<think>推理过程<\/think>/, '思维链选项没有说明最终保存格式')
assert.match(generationControlSource, /\.output-type-options[\s\S]*?min-height:\s*44px/, '输出类型选项的点击区域不足 44px')
assert.match(
generationControlSource,
/<div v-else class="generation-config-group quality-config-group">[\s\S]*?<strong>输出类型<\/strong>[\s\S]*?<div class="quality-switch-row">/,
'输出类型必须显示在第一步生成选项中,并位于质量筛选之前',
)
const modelGenerationSection = generationControlSource.slice(
generationControlSource.indexOf('<div v-if="section === \'model\'"'),
generationControlSource.indexOf('<div v-else class="generation-config-group quality-config-group">'),
)
assert.doesNotMatch(modelGenerationSection, /<strong>输出类型<\/strong>/, '第二步大模型选择不应重复显示输出类型')
assert.match(generationControlSource, /\.model-field\s*\{[\s\S]*?display:\s*flex[\s\S]*?flex-direction:\s*column/, '大模型字段没有使用稳定的纵向表单布局')
assert.match(generationControlSource, /\.generation-config-group\s*\{[\s\S]*?border:\s*1px solid #e2e5ec/, '大模型配置没有保留统一配置面板边框')
assert.match(generationControlSource, /\.model-config-group\s*\{[\s\S]*?padding:\s*0[\s\S]*?border:\s*0/, '独立大模型步骤仍存在嵌套卡片挤压')