|
|
@ -1,4 +1,4 @@ |
|
|
import { EventEmitter } from '@angular/core'; |
|
|
import { EventEmitter, Type } from '@angular/core'; |
|
|
import { Router } from '@angular/router'; |
|
|
import { Router } from '@angular/router'; |
|
|
import { Subject } from 'rxjs'; |
|
|
import { Subject } from 'rxjs'; |
|
|
import { eLayoutType } from '../enums/common'; |
|
|
import { eLayoutType } from '../enums/common'; |
|
|
@ -35,21 +35,25 @@ export namespace ABP { |
|
|
maxResultCount?: number; |
|
|
maxResultCount?: number; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface Route { |
|
|
export interface Node { |
|
|
children?: Route[]; |
|
|
|
|
|
invisible?: boolean; |
|
|
|
|
|
layout?: eLayoutType; |
|
|
|
|
|
name: string; |
|
|
name: string; |
|
|
order?: number; |
|
|
|
|
|
parentName?: string; |
|
|
parentName?: string; |
|
|
|
|
|
order?: number; |
|
|
|
|
|
invisible?: boolean; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export interface Nav extends Node { |
|
|
path: string; |
|
|
path: string; |
|
|
requiredPolicy?: string; |
|
|
requiredPolicy?: string; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export interface Route extends Nav { |
|
|
|
|
|
layout?: eLayoutType; |
|
|
iconClass?: string; |
|
|
iconClass?: string; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface FullRoute extends Route { |
|
|
export interface Tab extends Nav { |
|
|
url?: string; |
|
|
component: Type<any>; |
|
|
wrapper?: boolean; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export interface BasicItem { |
|
|
export interface BasicItem { |
|
|
|