v1.4.1 - 修复TaskList组件自定义列及数据绑定问题 & SonarQube安全弱点修复
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user