mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
25 lines
507 B
TypeScript
25 lines
507 B
TypeScript
import { h, defineComponent } from 'vue';
|
|
|
|
export const IonPage = /*@__PURE__*/ defineComponent({
|
|
name: 'IonPage',
|
|
props: {
|
|
registerIonPage: { type: Function, default: () => {} }
|
|
},
|
|
mounted() {
|
|
this.$props.registerIonPage(this.$refs.ionPage);
|
|
},
|
|
setup(_, { attrs, slots }) {
|
|
return () => {
|
|
return h(
|
|
'div',
|
|
{
|
|
...attrs,
|
|
['class']: 'ion-page',
|
|
ref: 'ionPage'
|
|
},
|
|
slots.default && slots.default()
|
|
)
|
|
}
|
|
}
|
|
});
|