- {{ task.name }}
+
diff --git a/src/components/TaskList.vue b/src/components/TaskList.vue
index 7a4b55b..b0d3ba8 100644
--- a/src/components/TaskList.vue
+++ b/src/components/TaskList.vue
@@ -313,7 +313,7 @@ const handleTaskListScroll = (event: Event) => {
detail: { scrollTop },
}),
)
-}// 处理Timeline垂直滚动同步
+} // 处理Timeline垂直滚动同步
const handleTimelineVerticalScroll = (event: CustomEvent) => {
const { scrollTop } = event.detail
const taskListBodyElement = document.querySelector('.task-list-body') as HTMLElement
@@ -406,7 +406,7 @@ onUnmounted(() => {
:class="column.cssClass || `col-${column.key}`"
:style="column.width ? { width: column.width + 'px' } : undefined"
>
- {{ column.label || (t as any)[column.key] }}
+ {{ (t as any)[column.key] || column.label }}
diff --git a/src/components/TaskRow.vue b/src/components/TaskRow.vue
index 1525a34..4affab3 100644
--- a/src/components/TaskRow.vue
+++ b/src/components/TaskRow.vue
@@ -67,7 +67,7 @@ const isStoryTask = computed(() => props.task.type === 'story')
const isMilestoneGroup = computed(() => props.task.type === 'milestone-group')
const isMilestoneTask = computed(() => props.task.type === 'milestone')
const isParentTask = computed(
- () => isStoryTask.value || hasChildren.value || isMilestoneGroup.value,
+ () => isStoryTask.value || hasChildren.value || isMilestoneGroup.value
)
function handleToggle() {
emit('toggle', props.task)
@@ -75,10 +75,7 @@ function handleToggle() {
function handleRowClick() {
// 如果是普通父级任务(story类型或有子任务的任务,非里程碑分组),点击行也可以展开/收起
- if (
- (isStoryTask.value || hasChildren.value) &&
- !isMilestoneGroup.value
- ) {
+ if ((isStoryTask.value || hasChildren.value) && !isMilestoneGroup.value) {
emit('toggle', props.task)
}
}
@@ -224,7 +221,7 @@ watch(
updateTimer()
}
},
- { immediate: true },
+ { immediate: true }
)
// 右键菜单相关状态
@@ -308,7 +305,7 @@ onUnmounted(() => {
'milestone-group-row': isMilestoneGroup,
'task-type-story': isStoryTask,
'task-type-task': props.task.type === 'task',
- 'task-type-milestone': isMilestoneTask
+ 'task-type-milestone': isMilestoneTask,
}"
@click="handleRowClick"
@dblclick="handleTaskRowDoubleClick"
@@ -318,7 +315,7 @@ onUnmounted(() => {
>
@@ -470,9 +467,7 @@ onUnmounted(() => {
-