@@ -148,7 +127,7 @@ const removeTab = (index) => {
const handleFullScreen = () => {
if (isFullScreen.value) document.exitFullscreen()
- else document.getElementsByClassName('tab_content_wrap')[0].requestFullscreen()
+ else document.getElementsByClassName('terminals_sftp_wrap')[0].requestFullscreen()
isFullScreen.value = !isFullScreen.value
}
@@ -183,7 +162,7 @@ const handleInputCommand = async (command) => {
const curTabTerminal = terminalTabRefs.value[activeTabIndex.value]
await $nextTick()
curTabTerminal?.focusTab()
- curTabTerminal.handleInputCommand(`${ command }\n`)
+ curTabTerminal.handleInputCommand(`${command}\n`)
showInputCommand.value = false
}
@@ -213,20 +192,24 @@ const handleInputCommand = async (command) => {
overflow: auto;
display: flex;
flex-direction: column;
+
.top {
+ height: 39px;
+ flex-shrink: 0;
position: sticky;
top: 0px;
z-index: 1;
background-color: rgb(255, 255, 255);
- padding-right: 15px;
+ padding: 0 15px;
display: flex;
- :deep(.el-dropdown) {
- margin-left: auto;
+ align-items: center;
+ justify-content: space-between;
+ .full_icon {
+ font-size: 15px;
+ color: var(--el-color-primary);
+ cursor: pointer;
}
.action_wrap {
- height: 39px;
- display: flex;
- align-items: center;
.link_host {
font-size: var(--el-font-size-base);
color: var(--el-color-primary);
@@ -235,6 +218,7 @@ const handleInputCommand = async (command) => {
}
}
}
+
.terminals_sftp_wrap {
height: 100%;
overflow: hidden;
@@ -279,34 +263,3 @@ const handleInputCommand = async (command) => {
}
}
-
-
\ No newline at end of file