fix(产品管理、项目管理、登录密码校验、工作报告): 修复用户们提出的一系列问题。
This commit is contained in:
@@ -11,6 +11,10 @@ export type WorkbenchTodoPriority = 'high' | 'mid' | 'low';
|
||||
export interface WorkbenchTodoItemSource {
|
||||
id: string;
|
||||
category: WorkbenchTodoCategory;
|
||||
/** 左侧分类 tag 文案;不传时按 category 默认映射 */
|
||||
categoryLabel?: string;
|
||||
/** 左侧分类 tag 色调;不传时按 category 默认映射 */
|
||||
categoryTone?: WorkbenchTodoItem['categoryTone'];
|
||||
title: string;
|
||||
/** 创建时间,ISO 字符串。列表默认按这个升序 */
|
||||
createdTime: string;
|
||||
@@ -126,8 +130,8 @@ export function buildWorkbenchTodoItems(source: readonly WorkbenchTodoItemSource
|
||||
...item,
|
||||
deadlineLabel: formatDeadline(item.deadline),
|
||||
remainingDays: getRemainingDays(item.deadline),
|
||||
categoryLabel: meta.label,
|
||||
categoryTone: meta.tone
|
||||
categoryLabel: item.categoryLabel || meta.label,
|
||||
categoryTone: item.categoryTone || meta.tone
|
||||
} satisfies WorkbenchTodoItem;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user