fix(vue): ion-nav now handles Vue components properly (#22197)

resolves #22184
This commit is contained in:
Liam DeBeasi
2020-09-30 10:16:38 -04:00
committed by GitHub
parent 25d3ea6b8d
commit 2c6259c1f6
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import { defineComponent, h } from 'vue';
import { VueDelegate } from '../framework-delegate';
export const IonNav = defineComponent({
name: 'IonNav',
setup(_, { slots }) {
const delegate = VueDelegate();
return () => {
return h(
'ion-nav',
{ delegate },
slots
)
}
}
});