|
14 | 14 | uploadVideoList.length
|
15 | 15 | "
|
16 | 16 | >
|
17 |
| - <el-space wrap> |
18 |
| - <template v-for="(item, index) in uploadDocumentList" :key="index"> |
19 |
| - <el-card shadow="never" style="--el-card-padding: 8px" class="file cursor"> |
| 17 | + <el-row :gutter="10"> |
| 18 | + <el-col |
| 19 | + v-for="(item, index) in uploadDocumentList" |
| 20 | + :key="index" |
| 21 | + :xs="24" |
| 22 | + :sm="12" |
| 23 | + :md="12" |
| 24 | + :lg="12" |
| 25 | + :xl="12" |
| 26 | + class="mb-8" |
| 27 | + > |
| 28 | + <el-card |
| 29 | + shadow="never" |
| 30 | + style="--el-card-padding: 8px; max-width: 100%" |
| 31 | + class="file cursor" |
| 32 | + > |
20 | 33 | <div
|
21 | 34 | class="flex align-center"
|
22 | 35 | @mouseenter.stop="mouseenter(item)"
|
|
32 | 45 | </el-icon>
|
33 | 46 | </div>
|
34 | 47 | <img :src="getImgUrl(item && item?.name)" alt="" width="24" />
|
35 |
| - <div class="ml-4 ellipsis" style="max-width: 160px" :title="item && item?.name"> |
| 48 | + <div class="ml-4 ellipsis-1" :title="item && item?.name"> |
36 | 49 | {{ item && item?.name }}
|
37 | 50 | </div>
|
38 | 51 | </div>
|
39 | 52 | </el-card>
|
40 |
| - </template> |
41 |
| - <template v-for="(item, index) in uploadImageList" :key="index"> |
| 53 | + </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 | + > |
42 | 64 | <div
|
43 | 65 | class="file cursor border border-r-4"
|
44 | 66 | v-if="item.url"
|
|
62 | 84 | class="border-r-4"
|
63 | 85 | />
|
64 | 86 | </div>
|
65 |
| - </template> |
66 |
| - <template v-for="(item, index) in uploadAudioList" :key="index"> |
| 87 | + </el-col> |
| 88 | + <el-col |
| 89 | + :xs="24" |
| 90 | + :sm="12" |
| 91 | + :md="12" |
| 92 | + :lg="12" |
| 93 | + :xl="12" |
| 94 | + class="mb-8" |
| 95 | + v-for="(item, index) in uploadAudioList" |
| 96 | + :key="index" |
| 97 | + > |
67 | 98 | <el-card shadow="never" style="--el-card-padding: 8px" class="file cursor">
|
68 | 99 | <div
|
69 | 100 | class="flex align-center"
|
|
80 | 111 | </el-icon>
|
81 | 112 | </div>
|
82 | 113 | <img :src="getImgUrl(item && item?.name)" alt="" width="24" />
|
83 |
| - <div class="ml-4 ellipsis" style="max-width: 160px" :title="item && item?.name"> |
| 114 | + <div class="ml-4 ellipsis-1" :title="item && item?.name"> |
84 | 115 | {{ item && item?.name }}
|
85 | 116 | </div>
|
86 | 117 | </div>
|
87 | 118 | </el-card>
|
88 |
| - </template> |
89 |
| - </el-space> |
| 119 | + </el-col> |
| 120 | + </el-row> |
90 | 121 | </div>
|
91 | 122 | </el-scrollbar>
|
92 | 123 | <div class="flex">
|
|
119 | 150 | <el-tooltip effect="dark" placement="top" popper-class="upload-tooltip-width">
|
120 | 151 | <template #content>
|
121 | 152 | <div class="break-all pre-wrap">
|
122 |
| - {{ $t('chat.uploadFile.label') }}:{{ |
123 |
| - $t('chat.uploadFile.most') |
| 153 | + {{ $t('chat.uploadFile.label') }}:{{ $t('chat.uploadFile.most') |
124 | 154 | }}{{ props.applicationDetails.file_upload_setting.maxFiles
|
125 | 155 | }}{{ $t('chat.uploadFile.limit') }}
|
126 | 156 | {{ props.applicationDetails.file_upload_setting.fileLimit }}MB<br />{{
|
@@ -191,7 +221,7 @@ import { t } from '@/locales'
|
191 | 221 | const router = useRouter()
|
192 | 222 | const route = useRoute()
|
193 | 223 | const {
|
194 |
| - query: { mode, question }, |
| 224 | + query: { mode, question } |
195 | 225 | } = route as any
|
196 | 226 | const quickInputRef = ref()
|
197 | 227 | const props = withDefaults(
|
|
0 commit comments