From a53ece5036c1fa61a63fe5f9e0cd3519210ab928 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 07 Aug 2026 09:44:27 +0800
Subject: [PATCH] feat:兼容分辨率低不出现滚动条
---
applications/drone-command/src/styles/common/cockpit.scss | 126 +++++++++++++++++++++++++++++++----------
1 files changed, 95 insertions(+), 31 deletions(-)
diff --git a/applications/drone-command/src/styles/common/cockpit.scss b/applications/drone-command/src/styles/common/cockpit.scss
index 61579d7..cd6119c 100644
--- a/applications/drone-command/src/styles/common/cockpit.scss
+++ b/applications/drone-command/src/styles/common/cockpit.scss
@@ -74,15 +74,7 @@
.el-tree-node__label {
color: #c3c3dd;
- }
-
- .el-tree-node__expand-icon {
- order: 3;
- margin-left: auto;
- }
-
- .el-tree-node__expand-icon.is-leaf {
- visibility: hidden;
+ font-size: 12px;
}
.el-checkbox {
@@ -91,10 +83,6 @@
.el-tree-node__label {
order: 2;
- }
-
- .el-tree-node__expand-icon:not(.is-leaf)~.el-checkbox {
- display: none;
}
.el-tree-node__content:hover,
@@ -111,14 +99,46 @@
color: #ffffff;
}
- .el-checkbox__input.is-checked .el-checkbox__inner {
- background-color: #023aff;
- border-color: #023aff;
+ .el-checkbox__input {
+ .el-checkbox__inner {
+ width: 16px;
+ height: 16px;
+ background: transparent !important;
+ border-radius: 2px 2px 2px 2px;
+ border: 2px solid #A1A3D4 !important;
+ box-shadow: none;
+ box-sizing: border-box;
+ }
+
+ &.is-checked {
+ .el-checkbox__inner {
+ border: none !important;
+ background: url("@/assets/images/common/checkbox.png") no-repeat center / 100% 100% !important;
+
+ &::after {
+ content: none !important;
+ }
+ }
+ }
+ }
+}
+
+.map-layer-tree {
+ .el-tree-node__expand-icon:not(.is-leaf)~.el-checkbox {
+ display: none !important;
}
- .el-checkbox__inner {
- background-color: transparent;
- border-color: #a1a3d4;
+ .el-tree-node__expand-icon {
+ order: 3;
+ margin-left: auto;
+ }
+
+ .el-tree-node__expand-icon.is-leaf {
+ visibility: hidden;
+ }
+
+ .el-tree-node__expand-icon.expanded {
+ transform: rotate(-180deg);
}
}
@@ -561,6 +581,10 @@
}
}
+ .el-select__wrapper.is-disabled .el-select__selected-item {
+ color: #a8abb2;
+ }
+
.el-select {
--el-select-border-color-hover: rgb(0, 162, 255) !important;
}
@@ -575,6 +599,15 @@
.el-input__wrapper {
--el-input-text-color: #161B2C !important;
+ }
+
+ .el-select__selection.is-near {
+ margin-left: 0;
+
+ .el-tag {
+ color: #ffffff;
+ background: #161B2C;
+ }
}
}
@@ -1106,8 +1139,10 @@
}
}
- th.el-table__cell:not(.fixed-column),
- td.el-table__cell:not(.fixed-column) {
+ // 注意:Element Plus 2.9.11 固定列类名为 el-table-fixed-column--left/right,
+ // 老的 .fixed-column 已不存在,这里需一并排除,否则固定列会被刷成透明
+ th.el-table__cell:not(.fixed-column):not(.el-table-fixed-column--left):not(.el-table-fixed-column--right),
+ td.el-table__cell:not(.fixed-column):not(.el-table-fixed-column--left):not(.el-table-fixed-column--right) {
background: transparent !important;
}
@@ -1149,7 +1184,9 @@
}
}
- .fixed-column {
+ .fixed-column,
+ .el-table-fixed-column--left,
+ .el-table-fixed-column--right {
background-color: #1A1A2A !important;
}
}
@@ -1223,6 +1260,10 @@
}
}
+.placeholder-ele {
+ padding: 12px;
+}
+
.command-page-view-dialog {
margin: 0;
padding: 20px;
@@ -1288,7 +1329,7 @@
align-items: center;
.label {
- width: 88px;
+ min-width: 88px;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 14px;
@@ -1351,7 +1392,7 @@
.el-form-item {
display: flex;
- align-items: center;
+ align-items: flex-start;
.el-form-item__label {
display: flex;
@@ -1360,6 +1401,7 @@
font-weight: 500;
font-size: 14px;
color: #D4D5D7;
+ height: 40px;
line-height: 40px;
text-align: right;
font-style: normal;
@@ -1413,6 +1455,10 @@
background: #2E2E48 !important;
border: none;
box-shadow: none;
+
+ &.is-disabled {
+ color: #a8abb2;
+ }
}
.command-date-picker {
@@ -1496,7 +1542,7 @@
.el-tabs__item {
position: relative;
margin-left: 26px;
-
+
font-family: Source Code Pro, Source Code Pro;
font-weight: 400;
font-size: 14px;
@@ -1505,16 +1551,16 @@
font-style: normal;
text-transform: none;
cursor: pointer;
-
+
&:first-child {
margin-left: 0;
}
-
+
&.is-active {
font-weight: normal;
color: #FFFFFF;
}
-
+
&::after {
content: '';
position: absolute;
@@ -1523,7 +1569,7 @@
width: 100%;
height: 0;
}
-
+
&.is-active::after {
height: 3px;
background: #284FE3;
@@ -1603,7 +1649,13 @@
color: #D4D5D7;
}
+ .el-message-box__container {
+ display: flex;
+ justify-content: center;
+ }
+
.el-message-box__btns {
+ padding-top: 30px;
display: flex;
justify-content: center;
@@ -1733,7 +1785,7 @@
align-items: center;
.label {
- width: 96px;
+ min-width: 96px;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
font-size: 14px;
@@ -1778,6 +1830,17 @@
flex-direction: column;
overflow-y: auto;
+
+ .detail-title {
+ margin-bottom: 20px;
+ font-family: Source Han Sans CN, Source Han Sans CN;
+ font-weight: 500;
+ font-size: 16px;
+ color: #FFFFFF;
+ text-align: left;
+ font-style: normal;
+ text-transform: none;
+ }
.el-row {
.el-col {
@@ -1906,7 +1969,7 @@
justify-content: flex-end;
padding-right: 12px;
- width: 96px;
+ min-width: 96px;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: 500;
@@ -1945,6 +2008,7 @@
}
.footer {
+ margin-top: 20px;
width: 100%;
display: flex;
align-items: center;
--
Gitblit v1.9.3