|
14 | 14 | type="textarea"
|
15 | 15 | />
|
16 | 16 | </div>
|
17 |
| - <div class="hot-words"> |
| 17 | + <div class="flex flex-col mt-30px"> |
18 | 18 | <div>
|
19 | 19 | <el-text tag="b">随机热词</el-text>
|
20 | 20 | </div>
|
21 |
| - <el-space wrap class="word-list"> |
| 21 | + <el-space wrap class="flex flex-row flex-wrap justify-start mt-15px"> |
22 | 22 | <el-button
|
23 | 23 | round
|
24 |
| - class="btn" |
| 24 | + class="m-0" |
25 | 25 | :type="selectHotWord === hotWord ? 'primary' : 'default'"
|
26 | 26 | v-for="hotWord in ImageHotWords"
|
27 | 27 | :key="hotWord"
|
|
31 | 31 | </el-button>
|
32 | 32 | </el-space>
|
33 | 33 | </div>
|
34 |
| - <div class="model"> |
| 34 | + <div class="mt-30px"> |
35 | 35 | <div>
|
36 | 36 | <el-text tag="b">模型选择</el-text>
|
37 | 37 | </div>
|
38 |
| - <el-space wrap class="model-list"> |
| 38 | + <el-space wrap class="mt-15px"> |
39 | 39 | <div
|
40 |
| - :class="selectModel === model.key ? 'modal-item selectModel' : 'modal-item'" |
| 40 | + :class="selectModel === model.key ? 'w-110px overflow-hidden flex flex-col items-center border-3 border-solid border-#1293ff rounded-5px cursor-pointer' : 'w-110px overflow-hidden flex flex-col items-center border-3 border-solid border-transparent cursor-pointer'" |
41 | 41 | v-for="model in Dall3Models"
|
42 | 42 | :key="model.key"
|
43 | 43 | >
|
44 | 44 | <el-image :src="model.image" fit="contain" @click="handleModelClick(model)" />
|
45 |
| - <div class="model-font">{{ model.name }}</div> |
| 45 | + <div class="text-14px color-#3e3e3e font-bold">{{ model.name }}</div> |
46 | 46 | </div>
|
47 | 47 | </el-space>
|
48 | 48 | </div>
|
49 |
| - <div class="image-style"> |
| 49 | + <div class="mt-30px"> |
50 | 50 | <div>
|
51 | 51 | <el-text tag="b">风格选择</el-text>
|
52 | 52 | </div>
|
53 |
| - <el-space wrap class="image-style-list"> |
| 53 | + <el-space wrap class="mt-15px"> |
54 | 54 | <div
|
55 |
| - :class="style === imageStyle.key ? 'image-style-item selectImageStyle' : 'image-style-item'" |
| 55 | + :class="style === imageStyle.key ? 'w-110px overflow-hidden flex flex-col items-center border-3 border-solid border-#1293ff rounded-5px cursor-pointer' : 'w-110px overflow-hidden flex flex-col items-center border-3 border-solid border-transparent cursor-pointer'" |
56 | 56 | v-for="imageStyle in Dall3StyleList"
|
57 | 57 | :key="imageStyle.key"
|
58 | 58 | >
|
59 | 59 | <el-image :src="imageStyle.image" fit="contain" @click="handleStyleClick(imageStyle)" />
|
60 |
| - <div class="style-font">{{ imageStyle.name }}</div> |
| 60 | + <div class="text-14px color-#3e3e3e font-bold">{{ imageStyle.name }}</div> |
61 | 61 | </div>
|
62 | 62 | </el-space>
|
63 | 63 | </div>
|
64 |
| - <div class="image-size"> |
| 64 | + <div class="w-full mt-30px"> |
65 | 65 | <div>
|
66 | 66 | <el-text tag="b">画面比例</el-text>
|
67 | 67 | </div>
|
68 |
| - <el-space wrap class="size-list"> |
| 68 | + <el-space wrap class="flex flex-row justify-between w-full mt-20px"> |
69 | 69 | <div
|
70 |
| - class="size-item" |
| 70 | + class="flex flex-col items-center cursor-pointer" |
71 | 71 | v-for="imageSize in Dall3SizeList"
|
72 | 72 | :key="imageSize.key"
|
73 | 73 | @click="handleSizeClick(imageSize)"
|
74 | 74 | >
|
75 | 75 | <div
|
76 |
| - :class="selectSize === imageSize.key ? 'size-wrapper selectImageSize' : 'size-wrapper'" |
| 76 | + :class="selectSize === imageSize.key ? 'flex flex-col items-center justify-center rounded-7px p-4px w-50px h-50px bg-white border-1 border-solid border-#1293ff' : 'flex flex-col items-center justify-center rounded-7px p-4px w-50px h-50px bg-white border-1 border-solid border-white'" |
77 | 77 | >
|
78 | 78 | <div :style="imageSize.style"></div>
|
79 | 79 | </div>
|
80 |
| - <div class="size-font">{{ imageSize.name }}</div> |
| 80 | + <div class="text-14px color-#3e3e3e font-bold">{{ imageSize.name }}</div> |
81 | 81 | </div>
|
82 | 82 | </el-space>
|
83 | 83 | </div>
|
84 |
| - <div class="btns"> |
| 84 | + <div class="flex justify-center mt-50px"> |
85 | 85 | <el-button
|
86 | 86 | type="primary"
|
87 | 87 | size="large"
|
@@ -229,135 +229,4 @@ const settingValues = async (detail: ImageVO) => {
|
229 | 229 | /** 暴露组件方法 */
|
230 | 230 | defineExpose({ settingValues })
|
231 | 231 | </script>
|
232 |
| -<style scoped lang="scss"> |
233 |
| -// 热词 |
234 |
| -.hot-words { |
235 |
| - display: flex; |
236 |
| - flex-direction: column; |
237 |
| - margin-top: 30px; |
238 | 232 |
|
239 |
| - .word-list { |
240 |
| - display: flex; |
241 |
| - flex-direction: row; |
242 |
| - flex-wrap: wrap; |
243 |
| - justify-content: start; |
244 |
| - margin-top: 15px; |
245 |
| -
|
246 |
| - .btn { |
247 |
| - margin: 0; |
248 |
| - } |
249 |
| - } |
250 |
| -} |
251 |
| -
|
252 |
| -// 模型 |
253 |
| -.model { |
254 |
| - margin-top: 30px; |
255 |
| -
|
256 |
| - .model-list { |
257 |
| - margin-top: 15px; |
258 |
| -
|
259 |
| - .modal-item { |
260 |
| - width: 110px; |
261 |
| - //outline: 1px solid blue; |
262 |
| - overflow: hidden; |
263 |
| - display: flex; |
264 |
| - flex-direction: column; |
265 |
| - align-items: center; |
266 |
| - border: 3px solid transparent; |
267 |
| - cursor: pointer; |
268 |
| -
|
269 |
| - .model-font { |
270 |
| - font-size: 14px; |
271 |
| - color: #3e3e3e; |
272 |
| - font-weight: bold; |
273 |
| - } |
274 |
| - } |
275 |
| -
|
276 |
| - .selectModel { |
277 |
| - border: 3px solid #1293ff; |
278 |
| - border-radius: 5px; |
279 |
| - } |
280 |
| - } |
281 |
| -} |
282 |
| -
|
283 |
| -// 样式 style |
284 |
| -.image-style { |
285 |
| - margin-top: 30px; |
286 |
| -
|
287 |
| - .image-style-list { |
288 |
| - margin-top: 15px; |
289 |
| -
|
290 |
| - .image-style-item { |
291 |
| - width: 110px; |
292 |
| - //outline: 1px solid blue; |
293 |
| - overflow: hidden; |
294 |
| - display: flex; |
295 |
| - flex-direction: column; |
296 |
| - align-items: center; |
297 |
| - border: 3px solid transparent; |
298 |
| - cursor: pointer; |
299 |
| -
|
300 |
| - .style-font { |
301 |
| - font-size: 14px; |
302 |
| - color: #3e3e3e; |
303 |
| - font-weight: bold; |
304 |
| - } |
305 |
| - } |
306 |
| -
|
307 |
| - .selectImageStyle { |
308 |
| - border: 3px solid #1293ff; |
309 |
| - border-radius: 5px; |
310 |
| - } |
311 |
| - } |
312 |
| -} |
313 |
| -
|
314 |
| -// 尺寸 |
315 |
| -.image-size { |
316 |
| - width: 100%; |
317 |
| - margin-top: 30px; |
318 |
| -
|
319 |
| - .size-list { |
320 |
| - display: flex; |
321 |
| - flex-direction: row; |
322 |
| - justify-content: space-between; |
323 |
| - width: 100%; |
324 |
| - margin-top: 20px; |
325 |
| -
|
326 |
| - .size-item { |
327 |
| - display: flex; |
328 |
| - flex-direction: column; |
329 |
| - align-items: center; |
330 |
| - cursor: pointer; |
331 |
| -
|
332 |
| - .size-wrapper { |
333 |
| - display: flex; |
334 |
| - flex-direction: column; |
335 |
| - align-items: center; |
336 |
| - justify-content: center; |
337 |
| - border-radius: 7px; |
338 |
| - padding: 4px; |
339 |
| - width: 50px; |
340 |
| - height: 50px; |
341 |
| - background-color: #fff; |
342 |
| - border: 1px solid #fff; |
343 |
| - } |
344 |
| -
|
345 |
| - .size-font { |
346 |
| - font-size: 14px; |
347 |
| - color: #3e3e3e; |
348 |
| - font-weight: bold; |
349 |
| - } |
350 |
| - } |
351 |
| - } |
352 |
| -
|
353 |
| - .selectImageSize { |
354 |
| - border: 1px solid #1293ff !important; |
355 |
| - } |
356 |
| -} |
357 |
| -
|
358 |
| -.btns { |
359 |
| - display: flex; |
360 |
| - justify-content: center; |
361 |
| - margin-top: 50px; |
362 |
| -} |
363 |
| -</style> |
0 commit comments