mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
docs(vue): update component usage examples for vue 3 (#22050)
This commit is contained in:
@ -295,6 +295,15 @@ export class BackButtonExample {
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonButtons, IonHeader, IonMenuButton, IonToolbar } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonButtons, IonHeader, IonMenuButton, IonToolbar }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -49,4 +49,13 @@
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonButtons, IonHeader, IonMenuButton, IonToolbar } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonButtons, IonHeader, IonMenuButton, IonToolbar }
|
||||
});
|
||||
</script>
|
||||
```
|
Reference in New Issue
Block a user