| | |
| | | color: #2c3e50; |
| | | } |
| | | |
| | | nav { |
| | | padding: 30px; |
| | | |
| | | a { |
| | | font-weight: bold; |
| | | color: #2c3e50; |
| | | |
| | | &.router-link-exact-active { |
| | | color: #42b983; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="ai-chat-dialog"> |
| | | <div> |
| | | <!-- 聊天消息列表 --> |
| | | <div class="chat-messages"> |
| | | <div |
| | |
| | | <!-- 输入框 --> |
| | | <div class="chat-input"> |
| | | <el-input |
| | | style="width: 50%" |
| | | v-model="inputMessage" |
| | | placeholder="请输入消息" |
| | | placeholder="请输入消息,按下回车发送" |
| | | @keyup.native.enter="sendMessage" |
| | | > |
| | | <div slot="append"> |
| | |
| | | .chat-input { |
| | | padding: 16px; |
| | | background-color: #fff; |
| | | border-top: 1px solid #ddd; |
| | | width: 800px; |
| | | display: flex; |
| | | width: 100%; |
| | | flex-direction: row; |
| | | justify-content: center; |
| | | align-items: center; |
| | | position: absolute; |
| | | bottom: 70px; |
| | | left: 50%; /* 将 div 的左边移动到父容器的 50% 位置 */ |
| | | transform: translateX(-50%); /* 将 div 向左移动自身宽度的 50% */ |
| | | } |
| | | </style> |