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(() => { + + + - + { -