mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-03 12:18:22 +08:00
fix: build error and refactor comments
This commit is contained in:
parent
95fe50025d
commit
a453ed7a0f
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user