Skip to content

Commit 8f6b53e

Browse files
LeoYuanJackLian
authored andcommitted
feat: add showArea & hideArea method for skeleton
1 parent c476887 commit 8f6b53e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

packages/shell/src/skeleton.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,22 @@ export default class Skeleton {
8383
this[skeletonSymbol].getWidget(name)?.disable?.();
8484
}
8585

86+
/**
87+
* show area
88+
* @param areaName name of area
89+
*/
90+
showArea(areaName: string) {
91+
(this[skeletonSymbol] as any)[areaName]?.show();
92+
}
93+
94+
/**
95+
* hide area
96+
* @param areaName name of area
97+
*/
98+
hideArea(areaName: string) {
99+
(this[skeletonSymbol] as any)[areaName]?.hide();
100+
}
101+
86102
/**
87103
* 监听 panel 显示事件
88104
* @param listener

0 commit comments

Comments
 (0)