mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
docs(vue): update component usage examples for vue 3 (#22050)
This commit is contained in:
@ -131,6 +131,15 @@ export class FabButtonExample {
|
||||
|
||||
</ion-content>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonContent, IonFab, IonFabButton } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonContent, IonFab, IonFabButton }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -22,4 +22,13 @@
|
||||
|
||||
</ion-content>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonContent, IonFab, IonFabButton } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonContent, IonFab, IonFabButton }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
Reference in New Issue
Block a user