icons-provider.module.ts 805 字节
Newer Older
J
Jason 已提交
1 2 3 4 5 6 7 8 9 10
import {NgModule} from '@angular/core';
import {NZ_ICONS, NzIconModule} from 'ng-zorro-antd/icon';

import {
  MenuFoldOutline,
  MenuUnfoldOutline,
  FormOutline,
  DashboardOutline,
  SettingOutline,
  LogoutOutline,
J
顶替  
Jason 已提交
11 12
  ApiOutline,
  HddOutline,
J
Jason 已提交
13
  ApartmentOutline,
J
Jason 已提交
14 15 16
  ReloadOutline,
  PlusOutline,
  DeleteOutline,
J
Jason 已提交
17
} from '@ant-design/icons-angular/icons';
J
 
Jason 已提交
18
import {CommonModule} from '@angular/common';
J
Jason 已提交
19

J
Jason 已提交
20
const icons = [MenuFoldOutline, MenuUnfoldOutline, DashboardOutline,
J
Jason 已提交
21
  FormOutline, SettingOutline, LogoutOutline, ApiOutline, ReloadOutline, PlusOutline, DeleteOutline,
J
Jason 已提交
22
  HddOutline, ApartmentOutline];
J
Jason 已提交
23 24 25 26 27

@NgModule({
  imports: [CommonModule, NzIconModule.forChild(icons)],
  exports: [NzIconModule],
  providers: [
J
Jason 已提交
28
    {provide: NZ_ICONS, useValue: icons}
J
Jason 已提交
29 30 31 32
  ]
})
export class IconsProviderModule {
}