parent
ed1191a16e
commit
aed250da13
@ -1,12 +1,115 @@
|
||||
<template>
|
||||
<div class="history-list">
|
||||
|
||||
<div class="history-box">
|
||||
<div class="history-title">聊天历史记录</div>
|
||||
<div class="history-list">
|
||||
<div class="history-item">
|
||||
<div class="history-row-title">根据2024年度业务根据2024年度业务根据2024年度业务</div>
|
||||
<div class="history-row-icon">
|
||||
<n-icon size="14" color="#F25D44" class="del-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32">
|
||||
<path d="M12 12h2v12h-2z" fill="currentColor"></path>
|
||||
<path d="M18 12h2v12h-2z" fill="currentColor"></path>
|
||||
<path d="M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z" fill="currentColor"></path>
|
||||
<path d="M12 2h8v2h-8z" fill="currentColor"></path>
|
||||
</svg>
|
||||
</n-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="history-item">
|
||||
<div class="history-row-title">根据2024年度业务根据2024年度业务根据2024年度业务</div>
|
||||
<div class="history-row-icon">
|
||||
<n-icon size="14" color="#F25D44" class="del-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32">
|
||||
<path d="M12 12h2v12h-2z" fill="currentColor"></path>
|
||||
<path d="M18 12h2v12h-2z" fill="currentColor"></path>
|
||||
<path d="M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z" fill="currentColor"></path>
|
||||
<path d="M12 2h8v2h-8z" fill="currentColor"></path>
|
||||
</svg>
|
||||
</n-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="history-item">
|
||||
<div class="history-row-title">根据2024年度业务根据2024年度业务根据2024年度业务</div>
|
||||
<div class="history-row-icon">
|
||||
<n-icon size="14" color="#F25D44" class="del-icon">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 32 32">
|
||||
<path d="M12 12h2v12h-2z" fill="currentColor"></path>
|
||||
<path d="M18 12h2v12h-2z" fill="currentColor"></path>
|
||||
<path d="M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z" fill="currentColor"></path>
|
||||
<path d="M12 2h8v2h-8z" fill="currentColor"></path>
|
||||
</svg>
|
||||
</n-icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="history-title">看板历史记录</div>
|
||||
<div class="history-list">
|
||||
<div class="history-item"></div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
<script setup lang="ts">
|
||||
import { projectListApi } from '@/api/path'
|
||||
import { onMounted } from 'vue'
|
||||
const fetchList = async () => {
|
||||
const res = await projectListApi()
|
||||
console.log(res)
|
||||
}
|
||||
onMounted(()=>{
|
||||
fetchList()
|
||||
})
|
||||
|
||||
defineExpose({
|
||||
fetchList
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
<style lang="scss" scoped>
|
||||
.history-box {
|
||||
padding-top: 37px;
|
||||
}
|
||||
.history-title {
|
||||
font-size: 14px;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
.history-list {
|
||||
margin: 10px 0;
|
||||
min-height: 5vh;
|
||||
max-height: 25vh;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.history-item {
|
||||
cursor: pointer;
|
||||
box-sizing: border-box;
|
||||
padding: 10px;
|
||||
|
||||
</style>
|
||||
border-radius: 4px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
.history-row-title {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
color: #cfd5e5;
|
||||
font-weight: 400;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.del-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.history-item:hover {
|
||||
background-color: #3d424d;
|
||||
.del-icon {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in new issue