feat: add node, nav, and tab types

pull/4377/head
Arman Ozak 5 years ago
parent c72bcf48f4
commit 6478f57317

@ -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 {

Loading…
Cancel
Save