@@ -136,6 +136,7 @@ jordium-gantt-vue3/
136136| ` useDefaultDrawer ` | ` boolean ` | ` true ` | Use default edit drawer |
137137| ` showToolbar ` | ` boolean ` | ` true ` | Show toolbar |
138138| ` toolbarConfig ` | ` ToolbarConfig ` | ` {} ` | Toolbar configuration |
139+ | ` taskListConfig ` | ` TaskListConfig ` | ` {} ` | Task list configuration (including default width, min/max width limits, etc.) |
139140| ` localeMessages ` | ` Partial<Messages['zh-CN']> ` | - | Custom locale messages |
140141| ` workingHours ` | ` WorkingHours ` | - | Working hours configuration |
141142| ` onTaskDoubleClick ` | ` (task: Task) => void ` | - | Task double-click event callback |
@@ -299,6 +300,31 @@ interface ToolbarConfig {
299300}
300301```
301302
303+ ** TaskListConfig**
304+ ``` typescript
305+ interface TaskListConfig {
306+ columns? : TaskListColumnConfig [] // Column configuration array
307+ showAllColumns? : boolean // Show all columns, default true
308+ defaultWidth? : number // Default expanded width in pixels, default 320px
309+ minWidth? : number // Minimum width in pixels, default 280px, cannot be less than 280px
310+ maxWidth? : number // Maximum width in pixels, default 1160px
311+ }
312+
313+ interface TaskListColumnConfig {
314+ type? : TaskListColumnType // Column type
315+ key: string // Key for internationalization, also used as identifier
316+ label? : string // Display label
317+ cssClass? : string // CSS class name
318+ width? : number // Optional column width
319+ visible? : boolean // Whether to display, default true
320+ }
321+
322+ type TaskListColumnType =
323+ | ' name' | ' predecessor' | ' assignee'
324+ | ' startDate' | ' endDate' | ' estimatedHours'
325+ | ' actualHours' | ' progress'
326+ ` ` `
327+
302328**WorkingHours Configuration**
303329` ` ` typescript
304330interface WorkingHours {
@@ -445,13 +471,21 @@ const milestones = ref([
445471 type: 'milestone'
446472 }
447473])
474+
475+ // TaskList width configuration example
476+ const taskListConfig = {
477+ defaultWidth: 400, // Default expanded width 400px (default 320px)
478+ minWidth: 300, // Minimum width 300px (default 280px)
479+ maxWidth: 1200 // Maximum width 1200px (default 1160px)
480+ }
448481</script>
449482
450483<template>
451484 <div style="height: 600px;">
452485 <GanttChart
453486 :tasks="tasks"
454487 :milestones="milestones"
488+ :task-list-config="taskListConfig"
455489 />
456490 </div>
457491</template>
0 commit comments