GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: update IPublicTypeComponentMetadata interface · EasterGit/lowcode-engine@3fea312

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • shell/src/api
      • material.ts
    • types/src/shell
      • api
        • material.ts
      • type
        • component-metadata.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/shell/src/api/material.ts‎

Copy file name to clipboardExpand all lines: packages/shell/src/api/material.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export class Material implements IPublicApiMaterial {
6363
* 获取「资产包」结构
6464
* @returns
6565
*/
66-
getAssets() {
66+
getAssets(): IPublicTypeAssetsJson | undefined {
6767
return this[editorSymbol].get('assets');
6868
}
6969

Collapse file

‎packages/types/src/shell/api/material.ts‎

Copy file name to clipboardExpand all lines: packages/types/src/shell/api/material.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface IPublicApiMaterial {
2222
* get AssetsJson data
2323
* @returns IPublicTypeAssetsJson
2424
*/
25-
getAssets(): IPublicTypeAssetsJson;
25+
getAssets(): IPublicTypeAssetsJson | undefined;
2626

2727
/**
2828
* 加载增量的「资产包」结构,该增量包会与原有的合并
Collapse file

‎packages/types/src/shell/type/component-metadata.ts‎

Copy file name to clipboardExpand all lines: packages/types/src/shell/type/component-metadata.ts
+21Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,74 +5,95 @@ import { IPublicTypeIconType, IPublicTypeNpmInfo, IPublicTypeFieldConfig, IPubli
55
*/
66

77
export interface IPublicTypeComponentMetadata {
8+
9+
/** 其他扩展协议 */
10+
[key: string]: any;
11+
812
/**
913
* 组件名
1014
*/
1115
componentName: string;
16+
1217
/**
1318
* unique id
1419
*/
1520
uri?: string;
21+
1622
/**
1723
* title or description
1824
*/
1925
title?: IPublicTypeTitleContent;
26+
2027
/**
2128
* svg icon for component
2229
*/
2330
icon?: IPublicTypeIconType;
31+
2432
/**
2533
* 组件标签
2634
*/
2735
tags?: string[];
36+
2837
/**
2938
* 组件描述
3039
*/
3140
description?: string;
41+
3242
/**
3343
* 组件文档链接
3444
*/
3545
docUrl?: string;
46+
3647
/**
3748
* 组件快照
3849
*/
3950
screenshot?: string;
51+
4052
/**
4153
* 组件研发模式
4254
*/
4355
devMode?: 'proCode' | 'lowCode';
56+
4457
/**
4558
* npm 源引入完整描述对象
4659
*/
4760
npm?: IPublicTypeNpmInfo;
61+
4862
/**
4963
* 组件属性信息
5064
*/
5165
props?: IPublicTypePropConfig[];
66+
5267
/**
5368
* 编辑体验增强
5469
*/
5570
configure?: IPublicTypeFieldConfig[] | IPublicTypeConfigure;
71+
5672
/**
5773
* @deprecated, use advanced instead
5874
*/
5975
experimental?: IPublicTypeAdvanced;
76+
6077
/**
6178
* @todo 待补充文档
6279
*/
6380
schema?: IPublicTypeComponentSchema;
81+
6482
/**
6583
* 可用片段
6684
*/
6785
snippets?: IPublicTypeSnippet[];
86+
6887
/**
6988
* 一级分组
7089
*/
7190
group?: string | IPublicTypeI18nData;
91+
7292
/**
7393
* 二级分组
7494
*/
7595
category?: string | IPublicTypeI18nData;
96+
7697
/**
7798
* 组件优先级排序
7899
*/

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.