123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <script setup lang="ts">
- import newChatIcon from '@/assets/imgs/ai/new_chat_icon.png'
- import msgIcon from '@/assets/imgs/ai/msg-icon.png'
- const searchKey = ref('')
- const handleNewChat = (): void => {
- console.log('handleNewChat')
- }
- </script>
- <template>
- <div class="ai-history-chat">
- <div class="new-chat-btn" @click="handleNewChat">
- <img class="icon" :src="newChatIcon" alt="" />
- 新建对话
- </div>
- <div class="search-content">
- <el-input prefix-icon="Search" type="text" v-model="searchKey" placeholder="搜素历史记录" />
- </div>
- <div class="histories-content">
- <div class="history-body">
- <img class="icon" :src="msgIcon" alt="" />
- <span class="text">村庄规划的编制要点是什么?</span>
- </div>
- </div>
- <div class="footer">
- <!-- <div class="delete-btn">批量删除</div>-->
- </div>
- </div>
- </template>
- <style lang="scss" scoped>
- .ai-history-chat {
- position: relative;
- margin-right: 20px;
- height: 100%;
- width: 360px;
- background: #ffffff;
- border-radius: 20px 20px 20px 20px;
- padding: 25px 25px 50px;
- display: flex;
- flex-direction: column;
- align-items: center;
- .new-chat-btn {
- flex-shrink: 0;
- width: 100%;
- height: 46px;
- font-weight: 400;
- font-size: 18px;
- color: #ffffff;
- background-image: url('@/assets/imgs/ai/new_chat_bg.png');
- border-radius: 8px;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- .icon {
- width: 22px;
- height: 22px;
- margin-right: 10px;
- }
- }
- .search-content {
- width: 100%;
- font-size: 16px;
- color: #8a94a4;
- margin-top: 20px;
- flex-shrink: 0;
- border-bottom: 1px solid #e9ecee;
- padding-bottom: 10px;
- :deep(.el-input__wrapper) {
- border: none !important;
- box-shadow: none !important;
- }
- }
- .histories-content {
- width: 100%;
- flex-grow: 1;
- overflow-y: auto;
- .history-body {
- width: 100%;
- margin-top: 12px;
- display: flex;
- align-items: center;
- padding: 12px 15px;
- background: #f4f6f9;
- border-radius: 8px 8px 8px 8px;
- font-size: 16px;
- color: #2d333c;
- .icon {
- width: 16px;
- height: 16px;
- margin-right: 8px;
- }
- }
- }
- .footer {
- position: absolute;
- bottom: 0;
- width: 100%;
- padding: 20px 0;
- display: flex;
- justify-content: space-between;
- .delete-btn {
- margin-left: 20px;
- font-size: 16px;
- color: #6e7c92;
- }
- }
- }
- </style>
|