mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(vue): ion-nav now handles Vue components properly (#22197)
resolves #22184
This commit is contained in:
16
packages/vue/src/components/IonNav.ts
Normal file
16
packages/vue/src/components/IonNav.ts
Normal 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
|
||||
)
|
||||
}
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user