对比新文件 |
| | |
| | | <!-- 消息列表为空时,展示 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> |