|
@@ -1,12 +1,28 @@
|
|
|
+// nav-interviewee-tabs.ts
|
|
|
import { Component } from '@angular/core';
|
|
|
-import { RouterOutlet } from '@angular/router';
|
|
|
+import { CommonModule } from '@angular/common';
|
|
|
+import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
|
|
|
+import { MatTabsModule } from '@angular/material/tabs';
|
|
|
+import { MatIconModule } from '@angular/material/icon';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-nav-interviewee-tabs',
|
|
|
- imports: [RouterOutlet],
|
|
|
+ standalone: true,
|
|
|
+ imports: [
|
|
|
+ CommonModule,
|
|
|
+ RouterOutlet,
|
|
|
+ RouterLink,
|
|
|
+ RouterLinkActive,
|
|
|
+ MatTabsModule,
|
|
|
+ MatIconModule
|
|
|
+ ],
|
|
|
templateUrl: './nav-interviewee-tabs.html',
|
|
|
styleUrl: './nav-interviewee-tabs.scss'
|
|
|
})
|
|
|
export class NavIntervieweeTabs {
|
|
|
-
|
|
|
-}
|
|
|
+ tabs = [
|
|
|
+ { path: 'home', label: '首页', icon: 'home' },
|
|
|
+ { path: 'interview', label: '面试', icon: 'assignment' },
|
|
|
+ { path: 'mine', label: '我的', icon: 'person' },
|
|
|
+ ];
|
|
|
+}
|