From d0c2dc56e4db0851b937da4fe88a969b8581954e Mon Sep 17 00:00:00 2001 From: qiuchengw Date: Mon, 1 Dec 2025 17:32:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81TaskList=E7=9A=84showTaskIcon?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TaskList.vue | 1 + src/components/TaskRow.vue | 23 +++++++++++++++++++++-- src/models/configs/TaskListConfig.ts | 1 + 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/components/TaskList.vue b/src/components/TaskList.vue index 695483e..8ff8214 100644 --- a/src/components/TaskList.vue +++ b/src/components/TaskList.vue @@ -574,6 +574,7 @@ onUnmounted(() => { :columns="visibleColumns" :get-column-width-style="getColumnWidthStyle" :disable-children-render="true" + :show-task-icon="props.taskListConfig?.showTaskIcon" @toggle="toggleCollapse" @dblclick="handleTaskRowDoubleClick" @contextmenu="handleTaskRowContextMenu" diff --git a/src/components/TaskRow.vue b/src/components/TaskRow.vue index e5d2d6c..49776b4 100644 --- a/src/components/TaskRow.vue +++ b/src/components/TaskRow.vue @@ -38,6 +38,7 @@ interface Props { columns: TaskListColumnConfig[] getColumnWidthStyle?: (column: { width?: number | string }) => StyleValue disableChildrenRender?: boolean + showTaskIcon?: boolean // 是否显示任务图标,默认true } const props = defineProps() const emit = defineEmits([ @@ -332,8 +333,14 @@ onUnmounted(() => { + + + - + { -