GeezerVison is showing github.com — docs: add skeleton.getAreaItems docs · Devancn/lowcode-engine@2bf3aa7
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/types/src/shell/api
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: docs/docs/api/skeleton.md +17Lines changed: 17 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -297,7 +297,24 @@ showArea(areaName: string): void; |
297 | 297 | hideArea(areaName: string): void; |
298 | 298 | ``` |
299 | 299 |
|
| 300 | +### getAreaItems |
| 301 | + |
| 302 | +获取某个区域下的所有面板实例 |
| 303 | + |
| 304 | +```typescript |
| 305 | +/** |
| 306 | + * 获取某个区域下的所有面板实例 |
| 307 | + * @param areaName IPublicTypeWidgetConfigArea |
| 308 | + */ |
| 309 | +getAreaItems(areaName: IPublicTypeWidgetConfigArea): IPublicModelSkeletonItem[] | undefined; |
| 310 | +``` |
| 311 | + |
| 312 | +相关类型:[IPublicModelSkeletonItem](https://github.com/alibaba/lowcode-engine/blob/main/packages/shell/src/model/skeleton-item.ts) |
| 313 | + |
| 314 | + |
| 315 | + |
300 | 316 | ### registerConfigTransducer |
| 317 | + |
301 | 318 | 注册一个面板的配置转换器(transducer)。 |
302 | 319 |
|
303 | 320 | ```typescript |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/types/src/shell/api/skeleton.ts +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { IPublicModelSkeletonItem } from '../model'; |
2 | | -import { IPublicTypeConfigTransducer, IPublicTypeDisposable, IPublicTypeSkeletonConfig } from '../type'; |
| 2 | +import { IPublicTypeConfigTransducer, IPublicTypeDisposable, IPublicTypeSkeletonConfig, IPublicTypeWidgetConfigArea } from '../type'; |
3 | 3 |
|
4 | 4 | export interface IPublicApiSkeleton { |
5 | 5 |
|
@@ -20,6 +20,12 @@ export interface IPublicApiSkeleton { |
20 | 20 | */ |
21 | 21 | remove(config: IPublicTypeSkeletonConfig): number | undefined; |
22 | 22 |
|
| 23 | + /** |
| 24 | + * 获取某个区域下的所有面板实例 |
| 25 | + * @param areaName IPublicTypeWidgetConfigArea |
| 26 | + */ |
| 27 | + getAreaItems(areaName: IPublicTypeWidgetConfigArea): IPublicModelSkeletonItem[] | undefined; |
| 28 | + |
23 | 29 | /** |
24 | 30 | * 获取面板实例 |
25 | 31 | * @param name 面板名称 |
|