From 27e50a762423440e1b2168b1ffd3478e4b84d38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=AD=90=E9=BB=98?= <925456043@qq.com> Date: Thu, 16 Jul 2026 14:50:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=85=BC=E5=AE=B9=20Chrome=2090=20?= =?UTF-8?q?=E5=89=8D=E7=AB=AF=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为管理端与用户中心补齐旧浏览器运行时 API 和回归测试 - 增加现代 CSS 与选择器降级,保持现有界面效果 - 固定 Chrome 90 构建目标并补充兼容依赖 --- easyflow-ui-admin/.browserslistrc | 1 + easyflow-ui-admin/app/package.json | 5 +- .../app/src/components/ai-chat/AiMessage.vue | 1 + .../src/components/ai-chat/AiPromptInput.vue | 1 + .../app/src/components/tag/Tag.vue | 12 +- .../app/src/components/tree/Tree.vue | 3 + easyflow-ui-admin/app/src/main.ts | 1 + easyflow-ui-admin/app/src/polyfills.test.ts | 108 ++++++++ easyflow-ui-admin/app/src/polyfills.ts | 261 +++++++++++++++--- .../app/src/typings/wicg-inert.d.ts | 1 + .../agents/components/AgentInspectorPanel.vue | 1 + .../agents/components/AgentWelcomeState.vue | 26 +- .../agent-studio/AgentStudioCanvas.vue | 1 + .../agent-studio/AgentStudioEdgeLayer.vue | 1 + .../agent-studio/AgentStudioNode.vue | 16 ++ .../documentCollection/ChunkDocumentTable.vue | 21 ++ .../ai/documentCollection/SegmenterDoc.vue | 8 + .../documentCollection/SplitterDocPreview.vue | 1 + .../ui/number-field/NumberFieldContent.vue | 2 +- .../chat-timeline/ChatKnowledgeCard.vue | 28 +- .../effects/plugins/src/vxe-table/style.css | 1 + .../src/components/base/mixed-input.svelte | 4 +- .../src/components/base/select.svelte | 4 +- easyflow-ui-admin/pnpm-lock.yaml | 19 ++ easyflow-ui-usercenter/.browserslistrc | 1 + easyflow-ui-usercenter/app/package.json | 2 + .../app/src/components/tag/Tag.vue | 12 +- easyflow-ui-usercenter/app/src/main.ts | 3 + .../app/src/polyfills.test.ts | 82 ++++++ easyflow-ui-usercenter/app/src/polyfills.ts | 208 ++++++++++++++ .../vite-config/src/config/application.ts | 4 + .../ui/number-field/NumberFieldContent.vue | 2 +- .../effects/plugins/src/vxe-table/style.css | 1 + easyflow-ui-usercenter/pnpm-lock.yaml | 11 + 34 files changed, 793 insertions(+), 60 deletions(-) create mode 100644 easyflow-ui-admin/app/src/polyfills.test.ts create mode 100644 easyflow-ui-admin/app/src/typings/wicg-inert.d.ts create mode 100644 easyflow-ui-usercenter/app/src/polyfills.test.ts create mode 100644 easyflow-ui-usercenter/app/src/polyfills.ts diff --git a/easyflow-ui-admin/.browserslistrc b/easyflow-ui-admin/.browserslistrc index dc3bc09a..4ff9abc2 100644 --- a/easyflow-ui-admin/.browserslistrc +++ b/easyflow-ui-admin/.browserslistrc @@ -1,4 +1,5 @@ > 1% last 2 versions +Chrome >= 90 not dead not ie 11 diff --git a/easyflow-ui-admin/app/package.json b/easyflow-ui-admin/app/package.json index 7ef59f3f..91f278c7 100644 --- a/easyflow-ui-admin/app/package.json +++ b/easyflow-ui-admin/app/package.json @@ -37,6 +37,7 @@ "@codemirror/view": "^6.39.15", "@element-plus/icons-vue": "^2.3.2", "@tinyflow-ai/vue": "workspace:*", + "@ungap/structured-clone": "1.3.0", "@vueuse/core": "catalog:", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.12", @@ -53,10 +54,12 @@ "vue-cropper": "^1.1.4", "vue-element-plus-x": "catalog:", "vue-router": "catalog:", - "vue3-json-viewer": "^2.4.1" + "vue3-json-viewer": "^2.4.1", + "wicg-inert": "3.1.3" }, "devDependencies": { "@types/node-forge": "^1.3.14", + "@types/ungap__structured-clone": "1.2.0", "cssnano": "catalog:", "unplugin-element-plus": "catalog:" } diff --git a/easyflow-ui-admin/app/src/components/ai-chat/AiMessage.vue b/easyflow-ui-admin/app/src/components/ai-chat/AiMessage.vue index efe30ddb..857f7575 100644 --- a/easyflow-ui-admin/app/src/components/ai-chat/AiMessage.vue +++ b/easyflow-ui-admin/app/src/components/ai-chat/AiMessage.vue @@ -91,6 +91,7 @@ const emit = defineEmits<{ max-width: min(88%, 640px); padding: 12px 14px; color: var(--el-text-color-primary); + background: var(--el-bg-color); background: color-mix(in srgb, var(--el-bg-color) 88%, transparent); border: 1px solid var(--el-border-color-lighter); border-radius: 8px; diff --git a/easyflow-ui-admin/app/src/components/ai-chat/AiPromptInput.vue b/easyflow-ui-admin/app/src/components/ai-chat/AiPromptInput.vue index 4dfcd2b7..f995c5d8 100644 --- a/easyflow-ui-admin/app/src/components/ai-chat/AiPromptInput.vue +++ b/easyflow-ui-admin/app/src/components/ai-chat/AiPromptInput.vue @@ -78,6 +78,7 @@ function handleKeydown(event: Event | KeyboardEvent) { align-items: flex-end; padding: 10px; margin: 0 16px 16px; + background: var(--el-bg-color); background: color-mix(in srgb, var(--el-bg-color) 92%, transparent); border: 1px solid var(--el-border-color-lighter); border-radius: 8px; diff --git a/easyflow-ui-admin/app/src/components/tag/Tag.vue b/easyflow-ui-admin/app/src/components/tag/Tag.vue index 85a6cf39..40a5a591 100644 --- a/easyflow-ui-admin/app/src/components/tag/Tag.vue +++ b/easyflow-ui-admin/app/src/components/tag/Tag.vue @@ -121,7 +121,11 @@ const sizeMap = {