Last active
October 20, 2020 23:37
-
-
Save KerryRitter/be64bade54a9115642334328b3cfac87 to your computer and use it in GitHub Desktop.
Tab.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<ion-page> | |
<ion-header> | |
<ion-toolbar color="dark"> | |
<ion-title>Tab 1</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-content :fullscreen="true"> | |
<ion-header collapse="condense"> | |
<ion-toolbar> | |
<ion-title size="large">Tab 1</ion-title> | |
</ion-toolbar> | |
</ion-header> | |
<ion-fab vertical="bottom" horizontal="end" slot="fixed"> | |
<ion-fab-button> | |
<ion-icon :icon="star"></ion-icon> | |
</ion-fab-button> | |
</ion-fab> | |
</ion-content> | |
</ion-page> | |
</template> | |
<script lang="ts"> | |
import { IonPage, IonHeader, IonToolbar, IonTitle, IonContent, IonFab, IonFabButton, IonIcon } from '@ionic/vue'; | |
import { defineComponent } from 'vue'; | |
import { star } from 'ionicons/icons'; | |
export default defineComponent({ | |
components: { IonHeader, IonToolbar, IonTitle, IonContent, IonFab, IonFabButton, IonIcon, IonPage }, | |
setup() { | |
return { star }; | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment