Skip to content

Commit 96d6883

Browse files
fix: upload image style error
1 parent 06feeec commit 96d6883

File tree

5 files changed

+36
-39
lines changed

5 files changed

+36
-39
lines changed

ui/src/components/ai-chat/component/chat-input-operate/index.vue

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -51,40 +51,7 @@
5151
</div>
5252
</el-card>
5353
</el-col>
54-
<el-col
55-
:xs="24"
56-
:sm="12"
57-
:md="12"
58-
:lg="12"
59-
:xl="12"
60-
class="mb-8"
61-
v-for="(item, index) in uploadImageList"
62-
:key="index"
63-
>
64-
<div
65-
class="file cursor border border-r-4"
66-
v-if="item.url"
67-
@mouseenter.stop="mouseenter(item)"
68-
@mouseleave.stop="mouseleave()"
69-
>
70-
<div
71-
@click="deleteFile(index, 'image')"
72-
class="delete-icon color-secondary"
73-
v-if="showDelete === item.url"
74-
>
75-
<el-icon>
76-
<CircleCloseFilled />
77-
</el-icon>
78-
</div>
79-
<el-image
80-
:src="item.url"
81-
alt=""
82-
fit="cover"
83-
style="width: 40px; height: 40px; display: block"
84-
class="border-r-4"
85-
/>
86-
</div>
87-
</el-col>
54+
8855
<el-col
8956
:xs="24"
9057
:sm="12"
@@ -118,6 +85,33 @@
11885
</el-card>
11986
</el-col>
12087
</el-row>
88+
<div class="flex">
89+
<template v-for="(item, index) in uploadImageList" :key="index">
90+
<div
91+
class="file cursor border border-r-4 mr-8"
92+
v-if="item.url"
93+
@mouseenter.stop="mouseenter(item)"
94+
@mouseleave.stop="mouseleave()"
95+
>
96+
<div
97+
@click="deleteFile(index, 'image')"
98+
class="delete-icon color-secondary"
99+
v-if="showDelete === item.url"
100+
>
101+
<el-icon>
102+
<CircleCloseFilled />
103+
</el-icon>
104+
</div>
105+
<el-image
106+
:src="item.url"
107+
alt=""
108+
fit="cover"
109+
style="width: 40px; height: 40px; display: block"
110+
class="border-r-4"
111+
/>
112+
</div>
113+
</template>
114+
</div>
121115
</div>
122116
</el-scrollbar>
123117
<div class="flex">

ui/src/locales/lang/en-US/views/application-workflow.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
node: 'Node',
3-
baseComponent: 'Base Component',
3+
baseComponent: 'Base',
44
nodeSetting: 'Node Settings',
55
workflow: 'Workflow',
66
searchBar: {
@@ -18,7 +18,8 @@ export default {
1818
releaseHistory: 'Publish History',
1919
autoSave: 'Auto Save',
2020
latestRelease: 'Latest Publish',
21-
copyParam: 'Copy Parameter'
21+
copyParam: 'Copy Parameter',
22+
debug: 'Run',
2223
},
2324
tip: {
2425
publicSuccess: 'Successfully',

ui/src/locales/lang/zh-CN/views/application-workflow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export default {
1818
releaseHistory: '发布历史',
1919
autoSave: '自动保存',
2020
latestRelease: '最近发布',
21-
copyParam: '复制参数'
21+
copyParam: '复制参数',
22+
debug: '调试',
2223
},
2324
tip: {
2425
publicSuccess: '发布成功',

ui/src/locales/lang/zh-Hant/views/application-workflow.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export default {
1818
releaseHistory: '發布歷史',
1919
autoSave: '自動保存',
2020
latestRelease: '最近發布',
21-
copyParam: '複製參數'
21+
copyParam: '複製參數',
22+
debug: '調試',
2223
},
2324
tip: {
2425
publicSuccess: '發布成功',

ui/src/views/application-workflow/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<el-button icon="Plus" @click="showPopover = !showPopover"> {{ $t('views.applicationWorkflow.setting.addComponent') }} </el-button>
3131
<el-button @click="clickShowDebug" :disabled="showDebug">
3232
<AppIcon iconName="app-play-outlined" class="mr-4"></AppIcon>
33-
{{ $t('common.debug') }}</el-button
33+
{{ $t('views.applicationWorkflow.setting.debug') }}</el-button
3434
>
3535
<el-button @click="saveApplication(true)">
3636
<AppIcon iconName="app-save-outlined" class="mr-4"></AppIcon>

0 commit comments

Comments
 (0)