|
@@ -36,7 +36,9 @@ import {
|
|
|
calendar,
|
|
|
checkmarkCircle,
|
|
|
ellipseOutline,
|
|
|
- refreshOutline
|
|
|
+ refreshOutline,
|
|
|
+ chevronUpOutline,
|
|
|
+ chevronDownOutline,
|
|
|
} from 'ionicons/icons';
|
|
|
import { DailyPlanService, DailyPlan } from '../services/daily-plan.service';
|
|
|
import { FormsModule } from '@angular/forms';
|
|
@@ -87,6 +89,7 @@ export class Tab2Page implements OnInit {
|
|
|
completedTasks: number = 0;
|
|
|
totalTasks: number = 0;
|
|
|
todayPlans: DailyPlan[] = [];
|
|
|
+ isPlansExpanded: boolean = true;
|
|
|
|
|
|
constructor(
|
|
|
private router: Router,
|
|
@@ -103,7 +106,9 @@ export class Tab2Page implements OnInit {
|
|
|
calendar,
|
|
|
checkmarkCircle,
|
|
|
ellipseOutline,
|
|
|
- refreshOutline
|
|
|
+ refreshOutline,
|
|
|
+ chevronUpOutline,
|
|
|
+ chevronDownOutline,
|
|
|
});
|
|
|
}
|
|
|
|
|
@@ -264,4 +269,9 @@ export class Tab2Page implements OnInit {
|
|
|
event.stopPropagation(); // 阻止事件冒泡,避免触发卡片的点击事件
|
|
|
await this.loadTodayPlans();
|
|
|
}
|
|
|
+
|
|
|
+ togglePlans(event: Event) {
|
|
|
+ event.stopPropagation();
|
|
|
+ this.isPlansExpanded = !this.isPlansExpanded;
|
|
|
+ }
|
|
|
}
|