From 9b71d115750fee550793c58097f6fcb89a2fba35 Mon Sep 17 00:00:00 2001 From: MiyueSC <913784771@qq.com> Date: Tue, 8 Aug 2023 15:09:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20contextpad=20=E4=BA=8B=E4=BB=B6=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enhancementContextPadProvider.js | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/packages/additional-modules/ContextPad/EnhancementContextPad/enhancementContextPadProvider.js b/packages/additional-modules/ContextPad/EnhancementContextPad/enhancementContextPadProvider.js index 494804a..4800b8d 100644 --- a/packages/additional-modules/ContextPad/EnhancementContextPad/enhancementContextPadProvider.js +++ b/packages/additional-modules/ContextPad/EnhancementContextPad/enhancementContextPadProvider.js @@ -48,30 +48,30 @@ class EnhancementContextPadProvider extends ContextPadProvider { const actions = {}; const modeling = this._modeling; - const appendUserTask = (event, element) => { - const shape = this._elementFactory.createShape({ type: "bpmn:UserTask" }); - this._create.start(event, shape, { - source: element - }); - }; - - const append = this._autoPlace - ? (event, element) => { - const shape = this._elementFactory.createShape({ type: "bpmn:UserTask" }); - this._autoPlace.append(element, shape); - } - : appendUserTask; - - // 添加创建用户任务按钮 - actions["append.append-user-task"] = { - group: "model", - className: "bpmn-icon-user-task", - title: "用户任务", - action: { - dragstart: appendUserTask, - click: append - } - }; + // const appendUserTask = (event, element) => { + // const shape = this._elementFactory.createShape({ type: "bpmn:UserTask" }); + // this._create.start(event, shape, { + // source: element + // }); + // }; + // + // const append = this._autoPlace + // ? (event, element) => { + // const shape = this._elementFactory.createShape({ type: "bpmn:UserTask" }); + // this._autoPlace.append(element, shape); + // } + // : appendUserTask; + // + // // 添加创建用户任务按钮 + // actions["append.append-user-task"] = { + // group: "model", + // className: "bpmn-icon-user-task", + // title: "用户任务", + // action: { + // dragstart: appendUserTask, + // click: append + // } + // }; // 添加一个与edit一组的按钮 actions["enhancement-op-1"] = {