From 60c74b991e39a880829de1dae7bb725939b24bf4 Mon Sep 17 00:00:00 2001 From: DevDengChao <2325690622@qq.com> Date: Mon, 18 May 2026 14:16:58 +0800 Subject: [PATCH] chore: fix ai iot lint Co-authored-by: Codex --- .../conversation/ConversationList.vue | 6 +- .../components/message/MessageFileUpload.vue | 35 +++++---- .../components/message/MessageReasoning.vue | 4 +- .../index/components/role/RoleRepository.vue | 4 +- src/views/ai/knowledge/segment/index.vue | 6 +- .../ai/mindmap/index/components/Right.vue | 7 +- src/views/ai/music/index/index.vue | 6 +- .../ai/music/index/list/audioBar/index.vue | 22 +++--- src/views/ai/music/index/list/index.vue | 13 ++-- .../ai/music/index/list/songCard/index.vue | 4 +- .../ai/music/index/list/songInfo/index.vue | 2 +- src/views/ai/music/index/mode/desc.vue | 2 +- src/views/ai/music/index/mode/lyric.vue | 4 +- src/views/ai/music/index/title/index.vue | 4 +- src/views/ai/workflow/form/WorkflowDesign.vue | 8 +- src/views/ai/write/index/components/Right.vue | 7 +- src/views/ai/write/index/components/Tag.vue | 2 +- .../device/detail/DeviceDetailsInfo.vue | 74 +++++++++---------- .../device/detail/DeviceDetailsMessage.vue | 4 +- .../DeviceDetailsThingModelProperty.vue | 4 +- .../data/sink/config/DatabaseConfigForm.vue | 59 ++++++++------- .../form/configs/SubConditionGroupConfig.vue | 2 +- .../scene/form/sections/TriggerSection.vue | 2 +- .../scene/form/selectors/PropertySelector.vue | 2 +- 24 files changed, 152 insertions(+), 131 deletions(-) diff --git a/src/views/ai/chat/index/components/conversation/ConversationList.vue b/src/views/ai/chat/index/components/conversation/ConversationList.vue index f73fb2731..b6630c30e 100644 --- a/src/views/ai/chat/index/components/conversation/ConversationList.vue +++ b/src/views/ai/chat/index/components/conversation/ConversationList.vue @@ -60,12 +60,12 @@ class="py-0.5 px-2.5" style=" max-width: 220px; + overflow: hidden; font-size: 14px; font-weight: 400; color: var(--el-text-color-regular); - overflow: hidden; - white-space: nowrap; text-overflow: ellipsis; + white-space: nowrap; " > {{ conversation.title }} @@ -103,9 +103,9 @@
{{ file.name }}{{ file.name }} ({{ formatFileSize(file.size) }})({{ formatFileSize(file.size) }})
@@ -286,27 +286,29 @@ onUnmounted(() => { --el-button-border-color: transparent; --el-button-hover-bg-color: var(--el-fill-color-light); --el-button-hover-border-color: transparent; + color: var(--el-text-color-regular); } .upload-btn.has-files { - color: var(--el-color-primary); --el-button-hover-bg-color: var(--el-color-primary-light-9); + + color: var(--el-color-primary); } .file-tooltip { position: absolute; bottom: calc(100% + 8px); left: 50%; - transform: translateX(-50%); + z-index: 1000; + max-width: 320px; + min-width: 240px; + padding: 8px; background: white; border: 1px solid var(--el-border-color-light); border-radius: 8px; - box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); - z-index: 1000; - min-width: 240px; - max-width: 320px; - padding: 8px; + transform: translateX(-50%); + box-shadow: 0 4px 12px rgb(0 0 0 / 15%); animation: fadeInDown 0.2s ease; } @@ -314,25 +316,25 @@ onUnmounted(() => { position: absolute; bottom: -5px; left: 50%; - transform: translateX(-50%); width: 0; height: 0; - border-left: 5px solid transparent; - border-right: 5px solid transparent; border-top: 5px solid var(--el-border-color-light); + border-right: 5px solid transparent; + border-left: 5px solid transparent; + transform: translateX(-50%); } /* Tooltip 箭头伪元素 */ .tooltip-arrow::after { - content: ''; position: absolute; bottom: 1px; left: -4px; width: 0; height: 0; - border-left: 4px solid transparent; - border-right: 4px solid transparent; border-top: 4px solid white; + border-right: 4px solid transparent; + border-left: 4px solid transparent; + content: ''; } @keyframes fadeInDown { @@ -340,6 +342,7 @@ onUnmounted(() => { opacity: 0; transform: translateX(-50%) translateY(4px); } + to { opacity: 1; transform: translateX(-50%) translateY(0); @@ -351,6 +354,7 @@ onUnmounted(() => { opacity: 0; transform: translateX(-50%) translateY(4px); } + to { opacity: 1; transform: translateX(-50%) translateY(0); @@ -374,6 +378,7 @@ onUnmounted(() => { .file-list::-webkit-scrollbar-thumb:hover { background: var(--el-border-color); } + /* 滚动条样式 */ .file-list::-webkit-scrollbar { width: 4px; diff --git a/src/views/ai/chat/index/components/message/MessageReasoning.vue b/src/views/ai/chat/index/components/message/MessageReasoning.vue index 7cf615c2d..b4781fd99 100644 --- a/src/views/ai/chat/index/components/message/MessageReasoning.vue +++ b/src/views/ai/chat/index/components/message/MessageReasoning.vue @@ -79,11 +79,11 @@ const toggleExpanded = () => { } .max-h-300px::-webkit-scrollbar-thumb { - background: rgba(156, 163, 175, 0.4); + background: rgb(156 163 175 / 40%); border-radius: 2px; } .max-h-300px::-webkit-scrollbar-thumb:hover { - background: rgba(156, 163, 175, 0.6); + background: rgb(156 163 175 / 60%); } diff --git a/src/views/ai/chat/index/components/role/RoleRepository.vue b/src/views/ai/chat/index/components/role/RoleRepository.vue index 04113731f..807be587b 100644 --- a/src/views/ai/chat/index/components/role/RoleRepository.vue +++ b/src/views/ai/chat/index/components/role/RoleRepository.vue @@ -228,8 +228,8 @@ onMounted(async () => { } .el-tabs__header { - margin: 0 !important; padding: 0 !important; + margin: 0 !important; } .el-tabs__nav-wrap { @@ -241,6 +241,6 @@ onMounted(async () => { } .el-tab-pane { - padding: 8px 0 0 0 !important; + padding: 8px 0 0 !important; } diff --git a/src/views/ai/knowledge/segment/index.vue b/src/views/ai/knowledge/segment/index.vue index e2f8a67f3..6a88b4746 100644 --- a/src/views/ai/knowledge/segment/index.vue +++ b/src/views/ai/knowledge/segment/index.vue @@ -57,16 +57,16 @@ class="content-expand" style=" padding: 10px 20px; - white-space: pre-wrap; line-height: 1.5; + white-space: pre-wrap; background-color: #f9f9f9; - border-radius: 4px; border-left: 3px solid #409eff; + border-radius: 4px; " >
完整内容:
diff --git a/src/views/ai/mindmap/index/components/Right.vue b/src/views/ai/mindmap/index/components/Right.vue index b1d04de49..0ab72d741 100644 --- a/src/views/ai/mindmap/index/components/Right.vue +++ b/src/views/ai/mindmap/index/components/Right.vue @@ -143,11 +143,12 @@ defineExpose({ flex-direction: column; :deep(.el-card__body) { + @extend .hide-scroll-bar; + + padding: 0; + overflow-y: auto; box-sizing: border-box; flex-grow: 1; - overflow-y: auto; - padding: 0; - @extend .hide-scroll-bar; } } diff --git a/src/views/ai/music/index/index.vue b/src/views/ai/music/index/index.vue index 413792a7f..a31c7be96 100644 --- a/src/views/ai/music/index/index.vue +++ b/src/views/ai/music/index/index.vue @@ -1,9 +1,9 @@ diff --git a/src/views/ai/music/index/list/audioBar/index.vue b/src/views/ai/music/index/list/audioBar/index.vue index db7f76734..e8d00e934 100644 --- a/src/views/ai/music/index/list/audioBar/index.vue +++ b/src/views/ai/music/index/list/audioBar/index.vue @@ -2,33 +2,33 @@
- +
-
{{currentSong.name}}
-
{{currentSong.singer}}
+
{{ currentSong.name }}
+
{{ currentSong.singer }}
- - - + + +
- {{audioProps.currentTime}} - + {{ audioProps.currentTime }} + {{ audioProps.duration }}
- - + +
diff --git a/src/views/ai/music/index/list/index.vue b/src/views/ai/music/index/list/index.vue index 6c33f565a..8f11bf3ab 100644 --- a/src/views/ai/music/index/list/index.vue +++ b/src/views/ai/music/index/list/index.vue @@ -6,26 +6,26 @@ - + - + - + - + - +
- +
@@ -100,6 +100,7 @@ defineExpose({ :deep(.el-tabs) { display: flex; flex-direction: column; + .el-tabs__content { padding: 0 7px; overflow: auto; diff --git a/src/views/ai/music/index/list/songCard/index.vue b/src/views/ai/music/index/list/songCard/index.vue index 05342512e..a281aa728 100644 --- a/src/views/ai/music/index/list/songCard/index.vue +++ b/src/views/ai/music/index/list/songCard/index.vue @@ -1,9 +1,9 @@