From be664d7c011a473002c1b413bac8303f7905d160 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期四, 29 五月 2025 14:26:36 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/views/ai/dashboard/components/message/MessageListEmpty.vue | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/src/views/ai/dashboard/components/message/MessageListEmpty.vue b/src/views/ai/dashboard/components/message/MessageListEmpty.vue new file mode 100644 index 0000000..e746f74 --- /dev/null +++ b/src/views/ai/dashboard/components/message/MessageListEmpty.vue @@ -0,0 +1,50 @@ +<!-- 消息列表为空时,展示 prompt 列表 --> +<template> + <div class="chat-empty"> + <!-- title --> + <div class="center-container"> + <div class="avatar"><img src="@/assets/ai/zhuanlu/assistant.png" /></div> + <div class="gradient-text">欢迎来到转炉煤气调度大模型</div> + </div> + </div> +</template> +<script setup lang="ts"> + +const emits = defineEmits(['onPrompt']) + +</script> +<style scoped lang="scss"> +.chat-empty { + position: relative; + display: flex; + flex-direction: row; + justify-content: center; + width: 100%; + height: 100%; + .center-container { + margin-top: 30%; + display: inline-block; + + div { + float: left; + } + + .avatar { + background: transparent; + width: 50px; + height: 50px; + position: relative; + } + /* 渐变文字样式 */ + .gradient-text { + font-family: Alimama ShuHeiTi, Alimama ShuHeiTi; + font-weight: bold; + font-size: 24px; + background: linear-gradient(0deg, #49FFD3 0%, #4585FF 100%); + -webkit-background-clip: text; + color: transparent; + margin: 4px 0 0 10px; + } + } +} +</style> -- Gitblit v1.9.3