mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
docs(vue): update component usage examples for vue 3 (#22050)
This commit is contained in:
@ -274,6 +274,15 @@ export class ButtonExample {
|
||||
<ion-button>Default</ion-button>
|
||||
<ion-button size="small">Small</ion-button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonButton } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonButton }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -49,4 +49,13 @@
|
||||
<ion-button>Default</ion-button>
|
||||
<ion-button size="small">Small</ion-button>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IonButton } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonButton }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
Reference in New Issue
Block a user