Skip to content

Commit

Permalink
perf(共享模块): 移除布局模块相关组件,UI组件移动到UI组件模块
Browse files Browse the repository at this point in the history
  • Loading branch information
jiayisheji committed Nov 30, 2017
1 parent d51a4a6 commit 95bbf96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
3 changes: 1 addition & 2 deletions src/app/shared/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './shared.module';
export * from './layouts';
export * from './shared.module';
29 changes: 8 additions & 21 deletions src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,29 @@ import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';

/**
* Layout Components
*/
import { LayoutsComponent, SiderComponent, HeaderComponent, FooterComponent } from './layouts';
import { getNavData } from './nav';

/**
* Simple Utility components
*/
import { MenuModule } from './menu';
import { DialogModule } from './dialog';
import { CardModule } from './card';
import { SimpleModule } from '@app/simple';

import { BreadcrumbModule } from './breadcrumb';

@NgModule({
imports: [
CommonModule,
RouterModule,
MenuModule,
DialogModule,
CardModule
SimpleModule.forRoot(),
BreadcrumbModule.forRoot(getNavData),
],
declarations: [
LayoutsComponent,
SiderComponent,
HeaderComponent,
FooterComponent
],
exports: [
CommonModule,
RouterModule,
MenuModule,
DialogModule,
CardModule,
LayoutsComponent,
SiderComponent,
HeaderComponent,
FooterComponent
SimpleModule,
BreadcrumbModule,
]
})
export class SharedModule { }

0 comments on commit 95bbf96

Please sign in to comment.