modify my task

This commit is contained in:
2026-03-01 11:30:40 +08:00
parent de59b57ee7
commit c8c4c99a6e
14 changed files with 696 additions and 91 deletions
+17
View File
@@ -70,6 +70,23 @@ export const createColumns = (callbacks?: ColumnCallbacks): ColumnDef<Task>[] =>
return h('div', { class: 'font-medium' }, row.getValue('name'))
},
},
{
accessorKey: 'project_name',
header: ({ column }) => {
return h(
Button,
{
variant: 'ghost',
onClick: () => column.toggleSorting(column.getIsSorted() === 'asc'),
},
() => ['Project', h(ArrowUpDown, { class: 'ml-2 h-4 w-4' })]
)
},
cell: ({ row }) => {
const projectName = row.getValue('project_name') as string | undefined
return h('div', { class: 'text-sm' }, projectName || '-')
},
},
{
accessorKey: 'task_type',
header: ({ column }) => {