mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
docs(vue): update component usage examples for vue 3 (#22050)
This commit is contained in:
@ -172,6 +172,15 @@ export class RippleEffectExample {
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { IonApp, IonContent, IonRippleEffect } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonApp, IonContent, IonRippleEffect }
|
||||
});
|
||||
</script>
|
||||
```
|
||||
|
||||
|
||||
|
@ -31,4 +31,13 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
import { IonApp, IonContent, IonRippleEffect } from '@ionic/vue';
|
||||
import { defineComponent } from 'vue';
|
||||
|
||||
export default defineComponent({
|
||||
components: { IonApp, IonContent, IonRippleEffect }
|
||||
});
|
||||
</script>
|
||||
```
|
Reference in New Issue
Block a user