mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(vue): update component usage examples for vue 3 (#22050)
This commit is contained in:
@ -714,6 +714,15 @@ export class GridExample {
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonCol, IonGrid, IonRow } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonCol, IonGrid, IonRow }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
|
||||
@ -178,4 +178,13 @@
|
||||
</ion-row>
|
||||
</ion-grid>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonCol, IonGrid, IonRow } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonCol, IonGrid, IonRow }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
Reference in New Issue
Block a user