mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 03:01:16 +00:00
feat: update IPublicTypeComponentMetadata interface
This commit is contained in:
parent
affdfbbb1c
commit
3fea312906
@ -63,7 +63,7 @@ export class Material implements IPublicApiMaterial {
|
|||||||
* 获取「资产包」结构
|
* 获取「资产包」结构
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getAssets() {
|
getAssets(): IPublicTypeAssetsJson | undefined {
|
||||||
return this[editorSymbol].get('assets');
|
return this[editorSymbol].get('assets');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ export interface IPublicApiMaterial {
|
|||||||
* get AssetsJson data
|
* get AssetsJson data
|
||||||
* @returns IPublicTypeAssetsJson
|
* @returns IPublicTypeAssetsJson
|
||||||
*/
|
*/
|
||||||
getAssets(): IPublicTypeAssetsJson;
|
getAssets(): IPublicTypeAssetsJson | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加载增量的「资产包」结构,该增量包会与原有的合并
|
* 加载增量的「资产包」结构,该增量包会与原有的合并
|
||||||
|
|||||||
@ -5,74 +5,95 @@ import { IPublicTypeIconType, IPublicTypeNpmInfo, IPublicTypeFieldConfig, IPubli
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export interface IPublicTypeComponentMetadata {
|
export interface IPublicTypeComponentMetadata {
|
||||||
|
|
||||||
|
/** 其他扩展协议 */
|
||||||
|
[key: string]: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件名
|
* 组件名
|
||||||
*/
|
*/
|
||||||
componentName: string;
|
componentName: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* unique id
|
* unique id
|
||||||
*/
|
*/
|
||||||
uri?: string;
|
uri?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* title or description
|
* title or description
|
||||||
*/
|
*/
|
||||||
title?: IPublicTypeTitleContent;
|
title?: IPublicTypeTitleContent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* svg icon for component
|
* svg icon for component
|
||||||
*/
|
*/
|
||||||
icon?: IPublicTypeIconType;
|
icon?: IPublicTypeIconType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件标签
|
* 组件标签
|
||||||
*/
|
*/
|
||||||
tags?: string[];
|
tags?: string[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件描述
|
* 组件描述
|
||||||
*/
|
*/
|
||||||
description?: string;
|
description?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件文档链接
|
* 组件文档链接
|
||||||
*/
|
*/
|
||||||
docUrl?: string;
|
docUrl?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件快照
|
* 组件快照
|
||||||
*/
|
*/
|
||||||
screenshot?: string;
|
screenshot?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件研发模式
|
* 组件研发模式
|
||||||
*/
|
*/
|
||||||
devMode?: 'proCode' | 'lowCode';
|
devMode?: 'proCode' | 'lowCode';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* npm 源引入完整描述对象
|
* npm 源引入完整描述对象
|
||||||
*/
|
*/
|
||||||
npm?: IPublicTypeNpmInfo;
|
npm?: IPublicTypeNpmInfo;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件属性信息
|
* 组件属性信息
|
||||||
*/
|
*/
|
||||||
props?: IPublicTypePropConfig[];
|
props?: IPublicTypePropConfig[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 编辑体验增强
|
* 编辑体验增强
|
||||||
*/
|
*/
|
||||||
configure?: IPublicTypeFieldConfig[] | IPublicTypeConfigure;
|
configure?: IPublicTypeFieldConfig[] | IPublicTypeConfigure;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated, use advanced instead
|
* @deprecated, use advanced instead
|
||||||
*/
|
*/
|
||||||
experimental?: IPublicTypeAdvanced;
|
experimental?: IPublicTypeAdvanced;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo 待补充文档
|
* @todo 待补充文档
|
||||||
*/
|
*/
|
||||||
schema?: IPublicTypeComponentSchema;
|
schema?: IPublicTypeComponentSchema;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 可用片段
|
* 可用片段
|
||||||
*/
|
*/
|
||||||
snippets?: IPublicTypeSnippet[];
|
snippets?: IPublicTypeSnippet[];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 一级分组
|
* 一级分组
|
||||||
*/
|
*/
|
||||||
group?: string | IPublicTypeI18nData;
|
group?: string | IPublicTypeI18nData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 二级分组
|
* 二级分组
|
||||||
*/
|
*/
|
||||||
category?: string | IPublicTypeI18nData;
|
category?: string | IPublicTypeI18nData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件优先级排序
|
* 组件优先级排序
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user