EngineConsole.vue 1.3 KB
<script setup lang="ts">
defineProps<{
  title: string
  lines: string[]
}>()
</script>

<template>
  <div class="console-card">
    <div class="console-head">
      <div>
        <p class="archive-kicker">Engine Processor Streams</p>
        <h3>{{ title }}</h3>
      </div>
      <span>{{ lines.length }} lines</span>
    </div>
    <pre class="console-output">{{ lines.length > 0 ? lines.join('\n') : '暂无日志输出' }}</pre>
  </div>
</template>

<style scoped>
.console-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #171916;
  box-shadow: 0 24px 60px rgba(17, 35, 31, 0.22);
}

.console-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.console-head h3 {
  margin: 6px 0 0;
  color: #f1e8db;
}

.console-head p,
.console-head span {
  color: rgba(213, 202, 187, 0.64);
}

.console-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-output {
  margin: 18px 0 0;
  min-height: 180px;
  max-height: 320px;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(9, 12, 10, 0.72);
  color: #f4efe6;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
}
</style>