diff --git a/web/src/style.css b/web/src/style.css
index 5a323b9..cef2903 100644
--- a/web/src/style.css
+++ b/web/src/style.css
@@ -31,13 +31,16 @@ html.dark {
--el-color-primary: #ff9500;
}
+/* el-select 统一样式 */
html.dark .el-select {
--el-select-input-focus-border-color: #ff9500;
}
html.dark .el-select .el-input__wrapper {
- background-color: #171922;
+ background-color: #1a1c25;
box-shadow: 0 0 0 1px #2a2c36 inset;
+ border-radius: 8px;
+ transition: all 0.2s ease;
}
html.dark .el-select .el-input__wrapper:hover {
@@ -52,13 +55,40 @@ html.dark .el-select .el-input__inner {
color: #ffffff;
}
+html.dark .el-select .el-input__inner::placeholder {
+ color: #71717a;
+}
+
+/* 下拉箭头 */
+html.dark .el-select .el-input__suffix .el-select__caret {
+ color: #71717a;
+ transition: transform 0.3s;
+}
+
+html.dark .el-select .el-input__suffix .el-select__caret.is-reverse {
+ transform: rotate(180deg);
+}
+
+html.dark .el-select .el-input__suffix .el-select__caret.is-show-close {
+ color: #71717a;
+}
+
+html.dark .el-select .el-input__suffix .el-select__caret:hover {
+ color: #ff9500;
+}
+
+/* 下拉菜单 */
html.dark .el-select-dropdown {
background-color: #171922;
border: 1px solid #2a2c36;
+ border-radius: 8px;
+ box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
html.dark .el-select-dropdown__item {
color: #ffffff;
+ padding: 8px 12px;
+ transition: all 0.2s;
}
html.dark .el-select-dropdown__item:hover {
@@ -71,6 +101,23 @@ html.dark .el-select-dropdown__item.is-selected {
background-color: transparent;
}
+html.dark .el-select-dropdown__item.is-selected::before {
+ content: '';
+ display: inline-block;
+ width: 4px;
+ height: 4px;
+ background-color: #ff9500;
+ border-radius: 50%;
+ margin-right: 8px;
+}
+
+/* 空状态 */
+html.dark .el-select-dropdown__empty {
+ color: #71717a;
+ padding: 20px 0;
+}
+
+/* popper 箭头 */
html.dark .el-popper.is-light {
background: #171922;
border: 1px solid #2a2c36;
@@ -81,6 +128,32 @@ html.dark .el-popper.is-light .el-popper__arrow::before {
border-color: #2a2c36;
}
+/* 输入框尺寸 */
+html.dark .el-select.el-select--large .el-input__wrapper {
+ padding: 4px 11px;
+}
+
+html.dark .el-select.el-select--default .el-input__wrapper {
+ padding: 3px 10px;
+}
+
+/* 多选标签 */
+html.dark .el-select .el-tag {
+ background-color: #2a2c36;
+ border-color: transparent;
+ color: #ffffff;
+ border-radius: 4px;
+}
+
+html.dark .el-select .el-tag .el-tag__close {
+ color: #71717a;
+}
+
+html.dark .el-select .el-tag .el-tag__close:hover {
+ background-color: #ff9500;
+ color: #ffffff;
+}
+
/* 柱状图增长动画 */
@keyframes bar-grow {
from {
diff --git a/web/src/views/Agents.vue b/web/src/views/Agents.vue
index afefd12..91846c2 100644
--- a/web/src/views/Agents.vue
+++ b/web/src/views/Agents.vue
@@ -248,15 +248,12 @@ const statusClass = (status: string) => {
class="w-full bg-dark-600 border border-dark-500 rounded-lg py-2 pl-10 pr-4 text-white placeholder-gray-500 focus:outline-none focus:border-primary-orange"
>
-
+