v1.9.0-rc.8 - SIT finished

This commit is contained in:
LINING-PC\lining
2026-02-07 18:44:23 +08:00
parent cf4d410e95
commit 430015e3fe
28 changed files with 1676 additions and 994 deletions
+23
View File
@@ -0,0 +1,23 @@
import type { Task } from '../classes/Task'
/**
* 资源接口 (Resource Interface)
* 用于资源计划视图,代表可分配的人力或设备资源
*
* @version 1.9.0
* @version 2.0.0 - 从 class 重构为 interface,方法迁移至 resourceUtils.ts
* @description 支持资源视图的核心数据模型,每个资源可以关联多个任务
*/
export interface Resource {
id: string | number
name: string
type?: string
avatar?: string
description?: string
department?: string
skills?: string[]
capacity?: number
color?: string // 自定义资源行左边框颜色,如 '#ff5733',若不设置则使用默认颜色方案
tasks: Task[]
[key: string]: unknown
}