84 lines
1.5 KiB
Vue
Raw Normal View History

2024-05-25 15:36:21 +08:00
<!-- image -->
<template>
<div class="ai-image">
<div class="left">
<div class="segmented">
<el-segmented v-model="selectModel" :options="modelOptions" />
2024-05-25 15:36:21 +08:00
</div>
<div class="modal-switch-container">
<Dall3 v-if="selectModel === 'DALL3绘画'"/>
<Midjourney v-if="selectModel === 'MJ绘画'" />
2024-05-25 15:36:21 +08:00
</div>
</div>
<div class="main">
2024-05-26 21:00:00 +08:00
<ImageTask />
2024-05-25 15:36:21 +08:00
</div>
2024-05-26 21:00:00 +08:00
<!-- <div class="right">-->
<!-- right-->
<!-- </div>-->
2024-05-25 15:36:21 +08:00
</div>
</template>
2024-05-25 15:36:21 +08:00
<script setup lang="ts">
import Dall3 from './dall3/index.vue'
import Midjourney from './midjourney/index.vue'
2024-05-26 21:00:00 +08:00
import ImageTask from './ImageTask.vue'
2024-05-25 15:36:21 +08:00
// 定义属性
const selectModel = ref('DALL3绘画')
const modelOptions = ['DALL3绘画', 'MJ绘画']
2024-05-25 15:36:21 +08:00
</script>
2024-05-25 15:36:21 +08:00
<style scoped lang="scss">
.ai-image {
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
display: flex;
flex-direction: row;
height: 100%;
width: 100%;
.left {
display: flex;
flex-direction: column;
padding: 20px;
width: 350px;
.segmented {
}
2024-05-25 15:36:21 +08:00
.segmented .el-segmented {
--el-border-radius-base: 16px;
--el-segmented-item-selected-color: #fff;
background-color: #ececec;
width: 350px;
}
.modal-switch-container {
height: 100%;
overflow-y: auto;
margin-top: 30px;
2024-05-25 15:36:21 +08:00
}
}
.main {
flex: 1;
background-color: #fff;
}
.right {
width: 350px;
background-color: #f7f8fa;
}
}
</style>