| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <script setup>
- /**
- * v1.1:区域 ② —— 实时状态(覆盖式)
- * 显示 Hermes 当前正在做什么,如"压缩上下文中"、"第 N 轮 LLM 调用"、"正在调用 read_file"。
- * 空状态时折叠,避免占用空间。
- */
- import { computed } from 'vue'
- const props = defineProps({
- status: { type: String, default: '' },
- })
- const isEmpty = computed(() => !props.status || !props.status.trim())
- </script>
- <template>
- <div v-if="!isEmpty" class="thinking-live">
- <span class="dot"></span>
- <span class="text">{{ status }}</span>
- </div>
- </template>
- <style scoped>
- /* v1.1:实时状态行,深色风格(紫色脉冲点 + 等宽字体) */
- .thinking-live {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 10px;
- font-size: 11px;
- font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', ui-monospace, monospace;
- color: var(--text-secondary, #b0b0b0);
- margin: 4px 10px 6px;
- }
- .dot {
- width: 6px;
- height: 6px;
- border-radius: 50%;
- background: #c084fc;
- box-shadow: 0 0 6px rgba(168, 85, 247, 0.6);
- animation: pulse 1.4s ease-in-out infinite;
- flex-shrink: 0;
- }
- .text {
- font-weight: 500;
- color: #c084fc;
- }
- @keyframes pulse {
- 0%, 100% { opacity: 1; transform: scale(1); }
- 50% { opacity: 0.5; transform: scale(0.8); }
- }
- </style>
|