feat(plugin): support configurable UI api for toolbar action items

This commit is contained in:
charlie
2021-06-29 17:55:06 +08:00
parent 2419657d8b
commit e947acf7bd
10 changed files with 111 additions and 9 deletions

View File

@@ -183,6 +183,11 @@ export interface IAppProxy {
showMsg: (content: string, status?: 'success' | 'warning' | string) => void
setZoomFactor: (factor: number) => void
registerUIItem: (
type: 'toolbar' | 'page',
opts: { key: string, template: string }
) => boolean
// events
onCurrentGraphChanged: IUserHook
onThemeModeChanged: IUserHook<{ mode: 'dark' | 'light' }>