Skip to content

Commit 4dec2a6

Browse files
fix: 优化部分样式
1 parent f638abd commit 4dec2a6

File tree

5 files changed

+47
-41
lines changed

5 files changed

+47
-41
lines changed

ui/src/components/ai-chat/ExecutionDetailDialog.vue

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -218,26 +218,29 @@
218218
<!-- 文档内容提取 -->
219219
<template v-if="item.type === WorkflowType.DocumentExtractNode">
220220
<div class="card-never border-r-4">
221-
<h5 class="p-8-12">
222-
参数输出
221+
<h5 class="p-8-12 flex align-center">
222+
<span class="mr-4">参数输出</span>
223+
223224
<el-tooltip
224-
effect="dark"
225-
content="每个文档仅支持预览500字"
226-
placement="right"
225+
effect="dark"
226+
content="每个文档仅支持预览500字"
227+
placement="right"
227228
>
228229
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
229230
</el-tooltip>
230231
</h5>
231232
<div class="p-8-12 border-t-dashed lighter">
232233
<el-scrollbar height="150">
233-
<MdPreview
234-
v-if="item.content"
235-
ref="editorRef"
236-
editorId="preview-only"
237-
:modelValue="item.content"
238-
style="background: none"
239-
/>
240-
<template v-else> - </template>
234+
<el-card shadow="never" style="--el-card-padding: 8px">
235+
<MdPreview
236+
v-if="item.content"
237+
ref="editorRef"
238+
editorId="preview-only"
239+
:modelValue="item.content"
240+
style="background: none"
241+
/>
242+
<template v-else> - </template>
243+
</el-card>
241244
</el-scrollbar>
242245
</div>
243246
</div>
@@ -333,6 +336,7 @@
333336
<template v-if="item.type === WorkflowType.FormNode">
334337
<div class="card-never border-r-4">
335338
<h5 class="p-8-12">参数输入</h5>
339+
336340
<div class="p-8-12 border-t-dashed lighter">
337341
<div v-for="(f, i) in item.form_field_list" :key="i" class="mb-8">
338342
<span class="color-secondary">{{ f.label.label }}:</span>

ui/src/components/ai-chat/component/operation-button/ChatOperationButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</el-tooltip>
2020
<el-divider direction="vertical" />
2121
</span>
22-
<span v-if="applicationId && type == 'log'">
22+
<span v-if="type == 'ai-chat' || type == 'log'">
2323
<el-tooltip effect="dark" content="换个答案" placement="top">
2424
<el-button :disabled="chat_loading" text @click="regeneration">
2525
<el-icon><RefreshRight /></el-icon>

ui/src/components/ai-chat/component/user-form/index.vue

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,37 @@
77
class="mb-16"
88
style="padding: 0 24px"
99
>
10-
<el-card shadow="always" class="dialog-card">
11-
<div class="flex align-center cursor w-full" @click="showUserInput = !showUserInput">
10+
<el-card shadow="always" class="dialog-card" style="--el-card-padding: 16px 8px">
11+
<div class="flex align-center cursor w-full" style="padding: 0 8px;" @click="showUserInput = !showUserInput">
1212
<el-icon class="mr-8 arrow-icon" :class="showUserInput ? 'rotate-90' : ''"
1313
><CaretRight
1414
/></el-icon>
1515
用户输入
1616
</div>
17-
<el-collapse-transition>
18-
<div v-show="showUserInput" class="mt-16">
19-
<DynamicsForm
20-
:key="dynamicsFormRefresh"
21-
v-model="form_data_context"
22-
:model="form_data_context"
23-
label-position="top"
24-
require-asterisk-position="right"
25-
:render_data="inputFieldList"
26-
ref="dynamicsFormRef"
27-
/>
28-
<DynamicsForm
29-
v-if="type === 'debug-ai-chat'"
30-
v-model="api_form_data_context"
31-
:model="api_form_data_context"
32-
label-position="top"
33-
require-asterisk-position="right"
34-
:render_data="apiInputFieldList"
35-
ref="dynamicsFormRef2"
36-
/>
37-
</div>
38-
</el-collapse-transition>
17+
<el-scrollbar max-height="160">
18+
<el-collapse-transition>
19+
<div v-show="showUserInput" class="mt-16" style="padding: 0 8px;">
20+
<DynamicsForm
21+
:key="dynamicsFormRefresh"
22+
v-model="form_data_context"
23+
:model="form_data_context"
24+
label-position="top"
25+
require-asterisk-position="right"
26+
:render_data="inputFieldList"
27+
ref="dynamicsFormRef"
28+
/>
29+
<DynamicsForm
30+
v-if="type === 'debug-ai-chat'"
31+
v-model="api_form_data_context"
32+
:model="api_form_data_context"
33+
label-position="top"
34+
require-asterisk-position="right"
35+
:render_data="apiInputFieldList"
36+
ref="dynamicsFormRef2"
37+
/>
38+
</div>
39+
</el-collapse-transition>
40+
</el-scrollbar>
3941
</el-card>
4042
</div>
4143
</template>

ui/src/workflow/nodes/base-node/component/FileUploadSettingDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<img class="mr-12" src="@/assets/icon_file-doc.svg" alt="" />
4646
<div>
4747
<p>文档(TXT、MD、DOCX、HTML、CSV、XLSX、XLS、PDF)</p>
48-
<el-text class="color-secondary">需要与文档内容提取节点配合使用</el-text>
48+
<el-text class="color-secondary">需要使用“文档内容提取”节点解析文档内容</el-text>
4949
</div>
5050
</div>
5151
<el-checkbox v-model="form_data.document" />
@@ -62,7 +62,7 @@
6262
<img class="mr-12" src="@/assets/icon_file-image.svg" alt="" />
6363
<div>
6464
<p>图片(JPG、JPEG、PNG、GIF)</p>
65-
<el-text class="color-secondary">所选模型需要支持接收图片</el-text>
65+
<el-text class="color-secondary">需要使用“图片理解”节点解析图片内容</el-text>
6666
</div>
6767
</div>
6868
<el-checkbox v-model="form_data.image" />

ui/src/workflow/nodes/form-node/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</div>
2626
<el-tooltip effect="dark" placement="right" popper-class="max-w-200">
2727
<template #content>
28-
`设置执行该节点输出的内容,{{ '{ from }' }}为表单的占位符。`
28+
设置执行该节点输出的内容,{{ '{ form }' }}为表单的占位符。
2929
</template>
3030
<AppIcon iconName="app-warning" class="app-warning-icon"></AppIcon>
3131
</el-tooltip>

0 commit comments

Comments
 (0)