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