Dalle supported image to image

This commit is contained in:
RockYang
2025-09-08 10:57:11 +08:00
parent 8b2cf90aab
commit ef6b642011
6 changed files with 38 additions and 18 deletions

View File

@@ -232,6 +232,7 @@ const copyContent = (text) => {
flex-flow: row;
margin-right: 10px;
position: relative;
justify-content: start;
.el-image {
border: 1px solid #e3e3e3;
@@ -365,6 +366,7 @@ const copyContent = (text) => {
flex-flow: row;
margin-right: 10px;
position: relative;
justify-content: end;
.el-image {
border: 1px solid #e3e3e3;

View File

@@ -85,7 +85,7 @@
<el-icon :size="40" class="el-icon--upload"><UploadFilled /></el-icon>
<div class="el-upload__text">拖拽图片到此处 <em>点击上传</em></div>
<template #tip>
<div class="el-upload__tip text-center">
<div class="el-upload__tip text-gray-500 text-sm">
支持 JPGPNG 格式最多上传 {{ maxCount }} 单张最大 5MB
</div>
</template>

View File

@@ -101,6 +101,13 @@
<span v-else>生成中...</span>
</el-button>
</div>
<div class="mt-2 mb-2">
<label class="text-gray-700 font-semibold">参考图(可选)</label>
<div class="py-2">
<ImageUpload v-model="params.image" :max-count="5" :multiple="true" />
</div>
</div>
</el-form>
</div>
<div class="py-4">
@@ -295,6 +302,7 @@ import { ElMessage, ElMessageBox } from 'element-plus'
import { onMounted, onUnmounted, ref } from 'vue'
import { LazyImg, Waterfall } from 'vue-waterfall-plugin-next'
import 'vue-waterfall-plugin-next/dist/style.css'
import ImageUpload from '@/components/ImageUpload.vue'
const listBoxHeight = ref(0)
// const paramBoxHeight = ref(0)