From 2afe569ec87ec65d2cc0d36e067fe296abde1c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Mon, 9 Oct 2023 18:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/main.js | 3 +- src/views/mdp/form/formDef/Form.vue | 2 +- src/views/mdp/form/source/Index.vue | 173 ++++++++++++++++------------ 4 files changed, 103 insertions(+), 77 deletions(-) diff --git a/package.json b/package.json index ba4fd34..8b55059 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "test": "npm run lint" }, "dependencies": { + "@highlightjs/vue-plugin": "^1.0.2", "@jiaminghi/data-view": "^2.10.0", "axios": "0.17.1", "clipboard": "1.7.1", @@ -28,6 +29,7 @@ "font-awesome": "4.7.0", "gantt-elastic": "^1.0.11", "gantt-elastic-header": "^0.1.11", + "highlight.js": "^11.9.0", "html2canvas": "^1.0.0-alpha.9", "js-cookie": "2.2.0", "js-md5": "^0.7.3", diff --git a/src/main.js b/src/main.js index d489141..b7f6a8c 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,4 @@ -import Vue from 'vue' - +import Vue from 'vue' import 'normalize.css/normalize.css'// A modern alternative to CSS resets diff --git a/src/views/mdp/form/formDef/Form.vue b/src/views/mdp/form/formDef/Form.vue index e438efd..c0ef656 100644 --- a/src/views/mdp/form/formDef/Form.vue +++ b/src/views/mdp/form/formDef/Form.vue @@ -60,7 +60,7 @@ diff --git a/src/views/mdp/form/source/Index.vue b/src/views/mdp/form/source/Index.vue index 431676d..ed3764a 100644 --- a/src/views/mdp/form/source/Index.vue +++ b/src/views/mdp/form/source/Index.vue @@ -1,13 +1,30 @@ -