EngineConsole.vue
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<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>