feat: 分类数据统一

This commit is contained in:
R524809
2026-04-23 10:54:22 +08:00
parent 2a1dbad164
commit b2ab123b4f
15 changed files with 757 additions and 221 deletions
+4 -6
View File
@@ -1,13 +1,11 @@
import type { WorksheetCategory } from './worksheet';
/** Tab / 首页用的分类展示模型 */
export interface CategoryType {
id: WorksheetCategory;
id: string;
name: string;
icon: string;
color: string;
/** 分类用于背景或装饰的渐变色,数组中为渐变起止的两个颜色值 */
gradient: [string, string];
img?: string;
color?: string;
sortOrder?: number;
}
/** 云集合 `categories` 文档(与小程序云开发方案 §3.4 对齐) */