v1.7.0-rc.2 - 支持右键事件定制化
This commit is contained in:
+1
-1
@@ -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"
|
||||
|
||||
@@ -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
|
||||
}>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user