12345678910111213141516171819202122 |
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-tab4',
- templateUrl: 'tab4.page.html',
- styleUrls: ['tab4.page.scss'],
- })
- export class Tab4Page {
- selectedTab = 'profile';
- items: any[] = [
- { image: 'assets/image1.jpg', likes: 100 },
- { image: 'assets/image2.jpg', likes: 150 },
- { image: 'assets/image4.jpg', likes: 120 },
- // 添加更多项目
- ];
- constructor() {}
- selectTab(tab: string) {
- this.selectedTab = tab;
- }
- }
|