fix(vue): correctly pass route props to components (#22476)

resolves #22472
This commit is contained in:
Liam DeBeasi
2020-11-11 12:12:12 -05:00
committed by GitHub
parent a4a64530ff
commit 0956f8bc55
4 changed files with 154 additions and 8 deletions

View File

@ -42,6 +42,7 @@ export interface ViewItem {
exact: boolean;
registerCallback?: () => void;
vueComponentRef: Ref;
params?: { [k: string]: any };
}
export interface ViewStacks {

View File

@ -88,7 +88,8 @@ export const createViewStacks = () => {
vueComponentRef: shallowRef(),
ionRoute: false,
mount: false,
exact: routeInfo.pathname === matchedRoute.path
exact: routeInfo.pathname === matchedRoute.path,
params: routeInfo.params
};
}