From 32771671121f2a8ddd77f845152cc9a55d1ba5d2 Mon Sep 17 00:00:00 2001 From: zhf <1204297681@qq.com> Date: Thu, 11 Sep 2025 11:03:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0monaco-editor?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BC=96=E8=BE=91=E5=99=A8=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/common/custom-theme/custom-theme.tsx | 2 +- src/editor/code/monaco-editor/monaco-editor.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa5e992ff..30b105252 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - 适配全局参数disableHomeTabs(是否禁用分页导航栏)逻辑,该参数为true时首页不显示分页导航栏 - 适配表单多数据部件对全局参数mdCtrlConfirmBeforeRemove(多数据部件删除前是否需要确认)的支持,并统一多数据部件删除确认弹框的显示样式 - 调整表单项组件中处理编辑器额外参数逻辑,将其迁移到控制器中处理 +- 更新monaco-editor代码编辑器的版本 ### Fixed diff --git a/src/common/custom-theme/custom-theme.tsx b/src/common/custom-theme/custom-theme.tsx index 8488d2deb..adcd889be 100644 --- a/src/common/custom-theme/custom-theme.tsx +++ b/src/common/custom-theme/custom-theme.tsx @@ -60,7 +60,7 @@ export const CustomTheme = defineComponent({ nextTick(() => { loader.config({ paths: { - vs: `${ibiz.env.pluginBaseUrl}/monaco-editor@0.45.0/min/vs`, + vs: `${ibiz.env.pluginBaseUrl}/monaco-editor@0.52.2/min/vs`, }, }); loader.init().then(loaderMonaco => { diff --git a/src/editor/code/monaco-editor/monaco-editor.tsx b/src/editor/code/monaco-editor/monaco-editor.tsx index 301739c83..dc863b032 100644 --- a/src/editor/code/monaco-editor/monaco-editor.tsx +++ b/src/editor/code/monaco-editor/monaco-editor.tsx @@ -464,7 +464,7 @@ export const IBizCode = defineComponent({ isLoading.value = true; loader.config({ paths: { - vs: `${ibiz.env.pluginBaseUrl}/monaco-editor@0.45.0/min/vs`, + vs: `${ibiz.env.pluginBaseUrl}/monaco-editor@0.52.2/min/vs`, }, }); loader -- Gitee