mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
26 lines
581 B
TypeScript
26 lines
581 B
TypeScript
import { h, defineComponent } from "vue";
|
|
|
|
export const IonPage = /*@__PURE__*/ defineComponent({
|
|
name: "IonPage",
|
|
props: {
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
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()
|
|
);
|
|
};
|
|
},
|
|
});
|