fix: build error and refactor comments

This commit is contained in:
scarqin 2022-05-10 17:11:49 +08:00
parent 95fe50025d
commit a453ed7a0f
2 changed files with 20 additions and 10 deletions

View File

@ -8,7 +8,7 @@ import { SidebarService } from '../shared/components/sidebar/sidebar.service';
})
export class PagesComponent implements OnInit {
loadedIframe = false;
constructor(private cdRef: ChangeDetectorRef, private sidebar: SidebarService) {}
constructor(private cdRef: ChangeDetectorRef, public sidebar: SidebarService) {}
ngOnInit(): void {
this.watchSidebarItemChange();
}

View File

@ -2,18 +2,28 @@
* Sidebar offical module
*/
export interface SidebarModuleInfo {
// app
name: string;
//icon or logo image
logo:string;
// 模块ID用于关联
/**
* icon or logo image
**/
logo: string;
/**
* unique extension id
**/
moduleID: string;
// 模块名称,用于显示
/**
* showname
**/
moduleName: string;
//is offcial app
/**
* is offcial app
**/
isOffical: boolean;
// module route
/**
* module route,click sidebar will navigate this route
**/
route: string;
// route active when match string
/**
* sidebar active when match activeRoute
**/
activeRoute: string;
}