From 2fc7ffc9b7d173bb8a81738140cfb7abd20ecd17 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 1 Sep 2020 12:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=A2=E4=BA=86=E6=96=B0=E7=94=B5=E8=84=91?= =?UTF-8?q?=EF=BC=8C=E5=B0=B1=E6=98=AF=E5=BF=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- portal/src/app/main/channel/channel.component.html | 1 + portal/src/app/main/icons-provider.module.ts | 8 +++++--- portal/src/app/main/main.component.ts | 7 +++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/portal/src/app/main/channel/channel.component.html b/portal/src/app/main/channel/channel.component.html index 7a373d3..cfea8b0 100644 --- a/portal/src/app/main/channel/channel.component.html +++ b/portal/src/app/main/channel/channel.component.html @@ -1,5 +1,6 @@ + diff --git a/portal/src/app/main/icons-provider.module.ts b/portal/src/app/main/icons-provider.module.ts index 32a25c7..3392fad 100644 --- a/portal/src/app/main/icons-provider.module.ts +++ b/portal/src/app/main/icons-provider.module.ts @@ -8,19 +8,21 @@ import { DashboardOutline, SettingOutline, LogoutOutline, - MailOutline, ApiOutline, HddOutline, + ApartmentOutline, } from '@ant-design/icons-angular/icons'; import {CommonModule} from '@angular/common'; -const icons = [MenuFoldOutline, MenuUnfoldOutline, DashboardOutline, FormOutline, SettingOutline, LogoutOutline, ApiOutline, HddOutline]; +const icons = [MenuFoldOutline, MenuUnfoldOutline, DashboardOutline, + FormOutline, SettingOutline, LogoutOutline, ApiOutline, + HddOutline, ApartmentOutline]; @NgModule({ imports: [CommonModule, NzIconModule.forChild(icons)], exports: [NzIconModule], providers: [ - { provide: NZ_ICONS, useValue: icons } + {provide: NZ_ICONS, useValue: icons} ] }) export class IconsProviderModule { diff --git a/portal/src/app/main/main.component.ts b/portal/src/app/main/main.component.ts index bea236b..76439ce 100644 --- a/portal/src/app/main/main.component.ts +++ b/portal/src/app/main/main.component.ts @@ -35,6 +35,13 @@ export class MainComponent implements OnInit { } ] }, + { + title: 'Modbus', + icon: 'apartment', + open: false, + children: [ + ] + }, { title: '系统设置', icon: 'setting', -- GitLab