mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-10 16:34:59 +00:00
【增加】image 增加重新生成操作(值已经完成切换,还不能完全填充值)
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import {ImageApi, ImageDrawReqVO} from '@/api/ai/image'
|
||||
import {ImageApi, ImageDrawReqVO, ImageVO} from '@/api/ai/image'
|
||||
|
||||
// image 模型
|
||||
interface ImageModelVO {
|
||||
@@ -371,6 +371,14 @@ const handleGenerateImage = async () => {
|
||||
drawIn.value = false
|
||||
}
|
||||
}
|
||||
|
||||
/** 填充值 */
|
||||
const settingValues = async (imageDetail: ImageVO) => {
|
||||
prompt.value = imageDetail.prompt
|
||||
}
|
||||
|
||||
/** 暴露组件方法 */
|
||||
defineExpose({ settingValues })
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
// 提示词
|
||||
|
||||
Reference in New Issue
Block a user