File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { add } from ' ionicons/icons'
3-
42definePageMeta ({
53 alias: [' /' , ' /tabs' ],
64})
@@ -9,7 +7,7 @@ definePageMeta({
97<template >
108 <ion-page >
119 <ion-header translucent >
12- <ion-toolbar class = " toolbar " >
10+ <ion-toolbar >
1311 <ion-thumbnail slot =" start" >
1412 <ion-img src =" /icon.png" />
1513 </ion-thumbnail >
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import { actionSheetController } from ' @ionic/vue'
3- import { camera , trash , close } from ' ionicons/icons '
3+ import { UserPhoto } from ' @/composables/usePhotoGallery '
44const { photos, takePhoto, deletePhoto } = usePhotoGallery ()
55
66const showActionSheet = async (photo : UserPhoto ) => {
@@ -10,14 +10,14 @@ const showActionSheet = async (photo: UserPhoto) => {
1010 {
1111 text: ' Delete' ,
1212 role: ' destructive' ,
13- icon: trash ,
13+ icon: ioniconsTrash ,
1414 handler : () => {
1515 deletePhoto (photo )
1616 },
1717 },
1818 {
1919 text: ' Cancel' ,
20- icon: close ,
20+ icon: ioniconsClose ,
2121 role: ' cancel' ,
2222 handler : () => {
2323 // Nothing to do, action sheet is automatically closed
@@ -44,18 +44,15 @@ const showActionSheet = async (photo: UserPhoto) => {
4444 </ion-header >
4545 <ion-grid >
4646 <ion-row >
47- <ion-col size =" 6" :key =" photo" v-for =" photo in photos" >
48- <ion-img
49- :src =" photo.webviewPath"
50- @click =" showActionSheet(photo)"
51- ></ion-img >
47+ <ion-col size =" 6" :key =" photo.filepath" v-for =" photo in photos" >
48+ <ion-img :src =" photo.webviewPath" @click =" showActionSheet(photo)" ></ion-img >
5249 </ion-col >
5350 </ion-row >
5451 </ion-grid >
5552
5653 <ion-fab vertical =" bottom" horizontal =" center" slot =" fixed" >
5754 <ion-fab-button @click =" takePhoto()" >
58- <ion-icon :icon =" camera " ></ion-icon >
55+ <ion-icon :icon =" ioniconsCamera " ></ion-icon >
5956 </ion-fab-button >
6057 </ion-fab >
6158 </ion-content >
Original file line number Diff line number Diff line change 22 <ion-page >
33 <ion-header >
44 <ion-toolbar >
5- <ion-title >Tab 3 </ion-title >
5+ <ion-title >Animation examples </ion-title >
66 </ion-toolbar >
77 </ion-header >
88 <ion-content :fullscreen =" true" >
99 <ion-header collapse =" condense" >
1010 <ion-toolbar >
11- <ion-title size =" large" >Tab 3 </ion-title >
11+ <ion-title size =" large" >Animation examples </ion-title >
1212 </ion-toolbar >
1313 </ion-header >
1414
You can’t perform that action at this time.
0 commit comments