v1.4.1 - 修复TaskList组件自定义列及数据绑定问题 & SonarQube安全弱点修复

This commit is contained in:
LINING-PC\lining
2025-10-26 23:14:18 +08:00
parent b3ba0f1ec9
commit 65059e1978
11 changed files with 110 additions and 65 deletions
+7 -2
View File
@@ -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)
@@ -221,7 +221,7 @@ watch(
updateTimer()
}
},
{ immediate: true }
{ immediate: true },
)
// 右键菜单相关状态
@@ -464,6 +464,11 @@ onUnmounted(() => {
{{ props.task.progress != null ? props.task.progress + '%' : '-' }}
</span>
</template>
<!-- 自定义列 - 通过task对象的key动态获取值 -->
<template v-else>
{{ (props.task as any)[column.key] || '-' }}
</template>
</template>
</div>
</div>