docs: 跟随物料规范,追加 ComponentSort 标识

This commit is contained in:
humphry.hy 2021-12-14 15:18:35 +08:00
parent e46d371dcd
commit 1a03a8c78e

View File

@ -79,6 +79,24 @@ export interface AssetsJson {
* @deprecated 最新版物料面板已不需要此描述
*/
bizComponentList?: ComponentCategory[];
/**
* 用于描述组件面板中的 tab 和 category
*/
sort?: ComponentSort;
}
/**
* 用于描述组件面板中的 tab 和 category
*/
export interface ComponentSort {
/**
* 用于描述组件面板的 tab 项及其排序,例如:["精选组件", "原子组件"]
*/
groupList?: string[];
/**
* 组件面板中同一个 tab 下的不同区间用 category 区分,category 的排序依照 categoryList 顺序排列;
*/
categoryList?: string[];
}
/**