Skip to content

Commit f624295

Browse files
committed
feat: 添加强制关闭功能,优化终端显示和日志处理
1 parent 2af5f2e commit f624295

File tree

4 files changed

+326
-20
lines changed

4 files changed

+326
-20
lines changed

src/vue/setting/data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const envInfo = ref<any>({
2020
isInstalling: false,
2121
installProgress: [],
2222
showProgressLog: false,
23+
showForceCloseButton: false, // 控制强制关闭按钮的显示
2324

2425
version : "v2.0.1",
2526
path: "~/.env",

src/vue/setting/view/environment/index.less

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
height: 100%;
44

55
.body-box {
6-
width: 80%;
6+
width: 100%;
77
min-width: 800px;
88

99
.rt-config-box {
@@ -141,6 +141,12 @@
141141
.log-title {
142142
margin-bottom: 0;
143143
}
144+
145+
.log-actions {
146+
display: flex;
147+
gap: 8px;
148+
align-items: center;
149+
}
144150
}
145151

146152
.log-content {
@@ -162,6 +168,27 @@
162168
margin-bottom: 0;
163169
}
164170
}
171+
172+
.terminal-container {
173+
height: 400px;
174+
border: 1px solid #ddd;
175+
border-radius: 3px;
176+
overflow: hidden;
177+
background-color: #1e1e1e;
178+
179+
:deep(.xterm) {
180+
padding: 8px;
181+
height: 100%;
182+
}
183+
184+
:deep(.xterm-viewport) {
185+
overflow-y: auto;
186+
}
187+
188+
:deep(.xterm-screen) {
189+
height: 100%;
190+
}
191+
}
165192
}
166193

167194
:deep(.el-progress__text) {

0 commit comments

Comments
 (0)