|
1 | 1 | <template>
|
2 |
| - <el-card body-class="" class="image-card"> |
3 |
| - <div class="image-operation"> |
| 2 | + <el-card body-class="" style="width: 320px; height: auto; border-radius: 10px; position: relative; display: flex; flex-direction: column;"> |
| 3 | + <div style="display: flex; flex-direction: row; justify-content: space-between;"> |
4 | 4 | <div>
|
5 | 5 | <el-button type="primary" text bg v-if="detail?.status === AiImageStatusEnum.IN_PROGRESS">
|
6 | 6 | 生成中
|
|
15 | 15 | <!-- 操作区 -->
|
16 | 16 | <div>
|
17 | 17 | <el-button
|
18 |
| - class="btn" |
| 18 | + style="padding: 10px; margin: 0;" |
19 | 19 | text
|
20 | 20 | :icon="Download"
|
21 | 21 | @click="handleButtonClick('download', detail)"
|
22 | 22 | />
|
23 | 23 | <el-button
|
24 |
| - class="btn" |
| 24 | + style="padding: 10px; margin: 0;" |
25 | 25 | text
|
26 | 26 | :icon="RefreshRight"
|
27 | 27 | @click="handleButtonClick('regeneration', detail)"
|
28 | 28 | />
|
29 |
| - <el-button class="btn" text :icon="Delete" @click="handleButtonClick('delete', detail)" /> |
30 |
| - <el-button class="btn" text :icon="More" @click="handleButtonClick('more', detail)" /> |
| 29 | + <el-button |
| 30 | + style="padding: 10px; margin: 0;" |
| 31 | + text |
| 32 | + :icon="Delete" |
| 33 | + @click="handleButtonClick('delete', detail)" |
| 34 | + /> |
| 35 | + <el-button |
| 36 | + style="padding: 10px; margin: 0;" |
| 37 | + text |
| 38 | + :icon="More" |
| 39 | + @click="handleButtonClick('more', detail)" |
| 40 | + /> |
31 | 41 | </div>
|
32 | 42 | </div>
|
33 |
| - <div class="image-wrapper" ref="cardImageRef"> |
| 43 | + <div style="overflow: hidden; margin-top: 20px; height: 280px; flex: 1;" ref="cardImageRef"> |
34 | 44 | <el-image
|
35 |
| - class="image" |
| 45 | + style="width: 100%; border-radius: 10px;" |
36 | 46 | :src="detail?.picUrl"
|
37 | 47 | :preview-src-list="[detail.picUrl]"
|
38 | 48 | preview-teleported
|
|
42 | 52 | </div>
|
43 | 53 | </div>
|
44 | 54 | <!-- Midjourney 专属操作 -->
|
45 |
| - <div class="image-mj-btns"> |
| 55 | + <div style="margin-top: 5px; width: 100%; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start;"> |
46 | 56 | <el-button
|
47 | 57 | size="small"
|
48 | 58 | v-for="button in detail?.buttons"
|
@@ -116,47 +126,3 @@ onMounted(async () => {
|
116 | 126 | await handleLoading(props.detail.status as string)
|
117 | 127 | })
|
118 | 128 | </script>
|
119 |
| - |
120 |
| -<style scoped lang="scss"> |
121 |
| -.image-card { |
122 |
| - width: 320px; |
123 |
| - height: auto; |
124 |
| - border-radius: 10px; |
125 |
| - position: relative; |
126 |
| - display: flex; |
127 |
| - flex-direction: column; |
128 |
| -
|
129 |
| - .image-operation { |
130 |
| - display: flex; |
131 |
| - flex-direction: row; |
132 |
| - justify-content: space-between; |
133 |
| -
|
134 |
| - .btn { |
135 |
| - //border: 1px solid red; |
136 |
| - padding: 10px; |
137 |
| - margin: 0; |
138 |
| - } |
139 |
| - } |
140 |
| -
|
141 |
| - .image-wrapper { |
142 |
| - overflow: hidden; |
143 |
| - margin-top: 20px; |
144 |
| - height: 280px; |
145 |
| - flex: 1; |
146 |
| -
|
147 |
| - .image { |
148 |
| - width: 100%; |
149 |
| - border-radius: 10px; |
150 |
| - } |
151 |
| - } |
152 |
| -
|
153 |
| - .image-mj-btns { |
154 |
| - margin-top: 5px; |
155 |
| - width: 100%; |
156 |
| - display: flex; |
157 |
| - flex-direction: row; |
158 |
| - flex-wrap: wrap; |
159 |
| - justify-content: flex-start; |
160 |
| - } |
161 |
| -} |
162 |
| -</style> |
0 commit comments