From ff0cf0774672ab824e3d44be0735c45f009203a0 Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Sun, 25 Dec 2022 10:49:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=99=A8color-picker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/package.json | 1 + ruoyi-ui/public/index.html | 424 +++++++++++----------- ruoyi-ui/src/components/Process/index.vue | 3 + 3 files changed, 220 insertions(+), 208 deletions(-) diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 59b03797..94cd458b 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -39,6 +39,7 @@ "@riophae/vue-treeselect": "0.4.0", "axios": "0.24.0", "bpmn-js": "^11.1.0", + "bpmn-js-color-picker": "^0.5.0", "clipboard": "2.0.8", "core-js": "3.25.3", "diagram-js": "^11.4.1", diff --git a/ruoyi-ui/public/index.html b/ruoyi-ui/public/index.html index 56fd45b3..7ab8641a 100644 --- a/ruoyi-ui/public/index.html +++ b/ruoyi-ui/public/index.html @@ -1,208 +1,216 @@ - - - - - - - - - <%= webpackConfig.name %> - - - - -
-
-
-
-
-
正在加载系统资源,请耐心等待
-
-
- - + + + + + + + + + <%= webpackConfig.name %> + + + + +
+
+
+
+
+
正在加载系统资源,请耐心等待
+
+
+ + diff --git a/ruoyi-ui/src/components/Process/index.vue b/ruoyi-ui/src/components/Process/index.vue index 7671610d..701d874a 100644 --- a/ruoyi-ui/src/components/Process/index.vue +++ b/ruoyi-ui/src/components/Process/index.vue @@ -58,6 +58,8 @@ import getInitStr from './flowable/init' // 引入flowable的节点文件 import FlowableModule from './flowable/flowable.json' import customControlsModule from './customPanel' +import BpmnColorPickerModule from 'bpmn-js-color-picker'; + export default { name: 'WorkflowBpmnModeler', components: { @@ -108,6 +110,7 @@ export default { container: this.$refs.canvas, additionalModules: [ customControlsModule, + BpmnColorPickerModule, { //汉化 translate: ['value', customTranslate] },