From 6c0d50edb4b67e3dbd0c3d9d52d3aeb31728eb8d Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Sun, 14 Jul 2024 23:31:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E6=95=B4=E5=90=88=20codem?= =?UTF-8?q?irror-editor-vue3=20=E4=BB=A3=E7=A0=81=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 +++ src/main.ts | 2 ++ 2 files changed, 5 insertions(+) diff --git a/package.json b/package.json index d4a35d77..4a758394 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,8 @@ "@wangeditor/editor-for-vue": "5.1.10", "animate.css": "^4.1.1", "axios": "^1.7.2", + "codemirror": "^5", + "codemirror-editor-vue3": "^2.7.0", "color": "^4.2.3", "echarts": "^5.5.1", "element-plus": "^2.7.6", @@ -71,6 +73,7 @@ "@commitlint/cli": "^18.6.1", "@commitlint/config-conventional": "^18.6.3", "@iconify-json/ep": "^1.1.15", + "@types/codemirror": "^5.60.15", "@types/color": "^3.0.6", "@types/lodash": "^4.17.6", "@types/node": "^20.14.10", diff --git a/src/main.ts b/src/main.ts index 16e0cb9f..5b8e96fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -10,7 +10,9 @@ import "element-plus/theme-chalk/dark/css-vars.css"; import "@/styles/index.scss"; import "uno.css"; import "animate.css"; +import { InstallCodemirro } from "codemirror-editor-vue3"; const app = createApp(App); app.use(setupPlugins); +app.use(InstallCodemirro); app.mount("#app");