feat: 分类数据统一
This commit is contained in:
@@ -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 对齐) */
|
||||
|
||||
Reference in New Issue
Block a user