From 352f2dce166246893a55317d78cce3d699be9a4f Mon Sep 17 00:00:00 2001 From: "LINING-PC\\lining" Date: Tue, 23 Dec 2025 18:00:31 +0800 Subject: [PATCH 1/3] v1.7.0-rc.1 Add TaskList and TaskBar Custom contextMenu --- demo/App.vue | 118 ++++++++++++++++++++ src/components/GanttChart.vue | 44 ++++++++ src/components/TaskBar.vue | 67 ++++++++++- src/components/TaskList/TaskList.vue | 3 + src/components/TaskList/taskRow/TaskRow.vue | 67 ++++++++++- src/components/Timeline.vue | 6 + 6 files changed, 302 insertions(+), 3 deletions(-) diff --git a/demo/App.vue b/demo/App.vue index ddee9ef..fea7d2f 100644 --- a/demo/App.vue +++ b/demo/App.vue @@ -733,6 +733,12 @@ const handleTaskRowMoved = async (payload: { // showMessage('保存失败,请刷新页面', 'error', { closable: true }) // } } + +// 自定义右键菜单操作处理 +const handleCustomMenuAction = (action: string, task: Task, onClose: () => void) => { + showMessage(`自定义操作: ${action} - 任务: ${task.name}`, 'info', { closable: true }) + onClose() +}