mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
fix(vue): ion-page component is properly shown with HMR (#22319)
This commit is contained in:
@ -3,7 +3,11 @@ import { h, defineComponent } from 'vue';
|
||||
export const IonPage = defineComponent({
|
||||
name: 'IonPage',
|
||||
props: {
|
||||
isInOutlet: { type: Boolean, default: false }
|
||||
isInOutlet: { type: Boolean, default: false },
|
||||
registerIonPage: { type: Function, default: () => {} }
|
||||
},
|
||||
mounted() {
|
||||
this.$props.registerIonPage(this.$refs.ionPage);
|
||||
},
|
||||
setup(props, { attrs, slots }) {
|
||||
const hidePageClass = (props.isInOutlet) ? 'ion-page-invisible' : '';
|
||||
|
Reference in New Issue
Block a user