Skip to content

Commit 055814c

Browse files
committed
update: update plugin api
1 parent 0bd85ca commit 055814c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

types/any-menu.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface PluginInterfaceCtx {
6363
/** 显示面板(低风险) */
6464
showPanel: (list?: string[]) => void;
6565
/** 注册子面板(中风险) */
66-
registerSubPanel: (options: { id: string; el: HTMLElement }) => void;
66+
registerSubPanel: (options: { id: string, el: HTMLElement|((el: HTMLElement) => void) }) => void;
6767
/** 注销子面板 */
6868
unregisterSubPanel: (id: string) => void;
6969
};

0 commit comments

Comments
 (0)