|
@@ -1,21 +1,35 @@
|
|
|
-<ion-header [translucent]="true">
|
|
|
- <ion-toolbar>
|
|
|
- <ion-title>
|
|
|
- "Thirst for power"
|
|
|
- </ion-title>
|
|
|
- </ion-toolbar>
|
|
|
-</ion-header>
|
|
|
-
|
|
|
<ion-content [fullscreen]="true">
|
|
|
<ion-app>
|
|
|
- <ion-menu contentId="main-content">more
|
|
|
+
|
|
|
+ <!-- 左上角菜单栏 -->
|
|
|
+ <ion-menu contentId="main-content">
|
|
|
<ion-header>
|
|
|
<ion-toolbar color="tertiary">
|
|
|
- <ion-title>more</ion-title>
|
|
|
+ <ion-title>菜单</ion-title>
|
|
|
</ion-toolbar>
|
|
|
</ion-header>
|
|
|
- <ion-content class="ion-padding">This is the menu content.</ion-content>
|
|
|
+ <ion-content class="ion-padding">
|
|
|
+
|
|
|
+ <!-- todolist组件 -->
|
|
|
+ <app-todo-edit (todolistChange)="changeTodolist($event)"></app-todo-edit>
|
|
|
+ <!-- todolist -->
|
|
|
+ @if(todolist.length>0){
|
|
|
+ <ion-card color="light">
|
|
|
+ <ion-list [inset]="true">
|
|
|
+ @for (todo of todolist; track todo) {
|
|
|
+ <ion-item>
|
|
|
+ <ion-checkbox slot="start" aria-label="Toggle task completion"></ion-checkbox>
|
|
|
+ <ion-input aria-label="Task name" value="{{todo}}" disabled></ion-input>
|
|
|
+ <span (click)="deleteThisTodolist(todo)" class="text-red">X</span>
|
|
|
+ </ion-item>
|
|
|
+ }
|
|
|
+ </ion-list>
|
|
|
+ </ion-card>
|
|
|
+ }
|
|
|
+ </ion-content>
|
|
|
</ion-menu>
|
|
|
+
|
|
|
+
|
|
|
<div class="ion-page" id="main-content">
|
|
|
<ion-header>
|
|
|
<ion-toolbar>
|
|
@@ -26,6 +40,26 @@
|
|
|
</ion-toolbar>
|
|
|
</ion-header>
|
|
|
<ion-content class="ion-padding">
|
|
|
+
|
|
|
+
|
|
|
+ <!-- todolist组件 -->
|
|
|
+ <!-- <app-todo-edit (todolistChange)="changeTodolist($event)"></app-todo-edit> -->
|
|
|
+ <!-- todolist -->
|
|
|
+ <!-- @if(todolist.length>0){
|
|
|
+ <ion-card color="light">
|
|
|
+ <ion-list [inset]="true">
|
|
|
+ @for (todo of todolist; track todo) {
|
|
|
+ <ion-item>
|
|
|
+ <ion-checkbox slot="start" aria-label="Toggle task completion"></ion-checkbox>
|
|
|
+ <ion-input aria-label="Task name" value="{{todo}}" disabled></ion-input>
|
|
|
+ <span (click)="deleteThisTodolist(todo)" class="text-red">X</span>
|
|
|
+ </ion-item>
|
|
|
+ }
|
|
|
+ </ion-list>
|
|
|
+ </ion-card>
|
|
|
+ } -->
|
|
|
+
|
|
|
+
|
|
|
<!-- 第一张卡片 -->
|
|
|
<ion-card>
|
|
|
<img alt="Silhouette of mountains" src="https://ionicframework.com/docs/img/demos/card-media.png" />
|