feat: webUI 优化流水线表单样式

1. 新增提交按钮
2. 优化按钮和表单项的样式
This commit is contained in:
HYana
2025-04-21 12:46:07 +08:00
committed by Junyan Qin
parent 453237aef8
commit b1c7bf5b58
2 changed files with 16 additions and 16 deletions

View File

@@ -211,9 +211,7 @@ export default function PipelineFormComponent({
style={{ display: getNowFormLabel().name === "trigger" ? 'block' : 'none' }}
>
{/* 群响应规则块 */}
<Form.Item>
</Form.Item>
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label={"是否在消息@机器人时触发"}
name={["group-respond-rules", "at"]}
@@ -253,10 +251,7 @@ export default function PipelineFormComponent({
step={0.05}
/>
</Form.Item>
<Form.Item>
访
</Form.Item>
<div className={`${styles.formItemSubtitle}`}> 访 </div>
<Form.Item
label={"模式"}
name={["access-control", "mode"]}
@@ -293,10 +288,7 @@ export default function PipelineFormComponent({
/>
</Form.Item>
<Form.Item
label={"消息忽略规则"}
>
</Form.Item>
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label={"前缀"}
@@ -329,6 +321,7 @@ export default function PipelineFormComponent({
style={{ display: getNowFormLabel().name === "safety" ? 'block' : 'none' }}
>
{/* 内容过滤块 content-filter */}
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label={"检查范围"}
name={["content-filter", "scope"]}
@@ -352,7 +345,7 @@ export default function PipelineFormComponent({
</Form.Item>
{/* 速率限制块 rate-limit */}
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label={"窗口长度(秒)"}
name={["rate-limit", "window-length"]}
@@ -391,7 +384,7 @@ export default function PipelineFormComponent({
style={{ display: getNowFormLabel().name === "output" ? 'block' : 'none' }}
>
{/* 长文本处理区块 */}
<Form.Item label="长文本处理" />
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label="阈值"
name={["long-text-processing", "threshold"]}
@@ -420,7 +413,7 @@ export default function PipelineFormComponent({
</Form.Item>
{/* 强制延迟区块 */}
<Form.Item label="强制延迟" />
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label="最小秒数"
name={["force-delay", "min"]}
@@ -437,7 +430,7 @@ export default function PipelineFormComponent({
</Form.Item>
{/* 杂项区块 */}
<Form.Item label="杂项" />
<div className={`${styles.formItemSubtitle}`}> </div>
<Form.Item
label="不输出异常信息给用户"
name={["misc", "hide-exception"]}
@@ -490,6 +483,13 @@ export default function PipelineFormComponent({
>
{getNextFormLabel()?.label || "暂无更多"}
</Button>
<Button
type="primary"
onClick={addFormLabelIndex}
>
</Button>
</div>
</div>

View File

@@ -5,7 +5,7 @@
}
.changeFormButtonGroupContainer {
width: 250px;
width: 320px;
display: flex;
flex-direction: row;
justify-content: space-between;