v1.7.0-rc.2 - 支持右键事件定制化

This commit is contained in:
LINING-PC\lining
2025-12-26 12:12:16 +08:00
parent 352f2dce16
commit 84aabe53d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1372,7 +1372,7 @@ const handleCustomMenuAction = (action: string, task: Task, onClose: () => void)
<TaskListColumn prop="endDate" :label="t.endDate" width="200" align="center" />
<!-- 自定义 TaskBar 右键菜单 - 声明此 slot 将使用自定义菜单 -->
<template #task-bar-context-menu="{ task, position, visible, onClose }">
<template #task-list-context-menu="{ task, position, visible, onClose }">
<Teleport to="body">
<div
v-if="visible && task"
+1 -1
View File
@@ -103,7 +103,7 @@ defineSlots<{
onAddPredecessor: () => void
onAddSuccessor: () => void
onDelete: (task: Task, deleteChildren?: boolean) => void
onDeleteLink: (linkTask: Task) => void
onDeleteLink: (event: { sourceTaskId: number; targetTaskId: number }) => void
}): unknown
}>()