2026-02-05 10:43:18 +08:00
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import { ref, onMounted, onUnmounted, reactive, toRefs } from "vue";
|
|
|
|
|
|
import userHead from '@/assets/images/chatVersion/userHead.png'
|
|
|
|
|
|
import robotHead from '@/assets/images/chatVersion/robotHead.png'
|
|
|
|
|
|
import { useI18n } from 'vue-i18n'
|
|
|
|
|
|
const { t: $t } = useI18n()
|
|
|
|
|
|
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
type: {
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
default: 'user'
|
|
|
|
|
|
},
|
|
|
|
|
|
})
|
|
|
|
|
|
//const emit = defineEmits([
|
|
|
|
|
|
//])
|
|
|
|
|
|
let data = reactive({
|
|
|
|
|
|
})
|
|
|
|
|
|
onMounted(()=>{
|
|
|
|
|
|
})
|
|
|
|
|
|
onUnmounted(()=>{
|
|
|
|
|
|
})
|
|
|
|
|
|
defineExpose({})
|
|
|
|
|
|
const {} = toRefs(data);
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="ChatHistory">
|
|
|
|
|
|
<div class="titleInfo">
|
|
|
|
|
|
<div class="userInfo">
|
|
|
|
|
|
<img :src="type == 'user'? userHead:robotHead" alt="">
|
|
|
|
|
|
<span>{{ type == 'user'? $t('VersionTree.input'): $t('VersionTree.sketch') }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="time">
|
|
|
|
|
|
<span>12:00:00</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="infoTitle">{{ type == 'user'? $t('VersionTree.userRequest'): $t('VersionTree.generateResult') }}</div>
|
|
|
|
|
|
<div class="history">
|
2026-02-05 10:57:13 +08:00
|
|
|
|
Design a modern yellow sofa that combines comfort, elegance, and contemporary aesthetics.
The sofa features a warm, soft yellow tone (mustard or light ochre), with a minimalist silhouette and clean lines.
Upholstered in high-quality fabric with a subtle texture, offering a cozy and inviting feel.
The seat is deep and plush, with generous cushioning for relaxation, while the backrest and armrests are softly rounded to enhance comfort.
|
|
|
|
|
|
Design a modern yellow sofa that combines comfort, elegance, and contemporary aesthetics.
The sofa features a warm, soft yellow tone (mustard or light ochre), with a minimalist silhouette and clean lines.
Upholstered in high-quality fabric with a subtle texture, offering a cozy and inviting feel.
The seat is deep and plush, with generous cushioning for relaxation, while the backrest and armrests are softly rounded to enhance comfort.
|
2026-02-05 10:43:18 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
|
.ChatHistory{
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
> .titleInfo{
|
|
|
|
|
|
height: 2.4rem;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
> .userInfo{
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
> img{
|
|
|
|
|
|
margin-right: .2rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
> span{
|
|
|
|
|
|
font-family: 'SemiBold';
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 1.4rem;
|
|
|
|
|
|
line-height: 2rem;
|
|
|
|
|
|
color: #000;
|
|
|
|
|
|
opacity: .5;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
> .time{
|
|
|
|
|
|
font-family: 'SemiBold';
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 1.4rem;
|
|
|
|
|
|
line-height: 2rem;
|
|
|
|
|
|
opacity: .5;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
> .infoTitle{
|
|
|
|
|
|
margin-top: .6rem;
|
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
line-height: 2rem;
|
|
|
|
|
|
margin-left: 3rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
> .history{
|
|
|
|
|
|
margin-top: .8rem;
|
|
|
|
|
|
font-family: 'Regular';
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
line-height: 1.4rem;
|
|
|
|
|
|
letter-spacing: Letter Spacing;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
margin-left: 3rem;
|
|
|
|
|
|
scrollbar-width: thin;
|
|
|
|
|
|
scrollbar-color: #ababab #f1f5f9;
|
|
|
|
|
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
|
|
|
|
&::-webkit-scrollbar-track {
|
2026-02-05 10:57:13 +08:00
|
|
|
|
background: #f1f5f9;
|
2026-02-05 10:43:18 +08:00
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
}
|
2026-02-05 10:57:13 +08:00
|
|
|
|
}
|
2026-02-05 10:43:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|