mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 13:01:01 +08:00
fix(route): params is not undefined
This commit is contained in:
2
packages/core/src/components.d.ts
vendored
2
packages/core/src/components.d.ts
vendored
@ -2602,7 +2602,7 @@ declare global {
|
|||||||
namespace JSXElements {
|
namespace JSXElements {
|
||||||
export interface IonRouteAttributes extends HTMLAttributes {
|
export interface IonRouteAttributes extends HTMLAttributes {
|
||||||
component?: string;
|
component?: string;
|
||||||
params?: undefined;
|
params?: {[key: string]: any};
|
||||||
path?: string;
|
path?: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,5 +7,5 @@ import { Component, Prop } from '@stencil/core';
|
|||||||
export class Route {
|
export class Route {
|
||||||
@Prop() path = '';
|
@Prop() path = '';
|
||||||
@Prop() component: string;
|
@Prop() component: string;
|
||||||
@Prop() params: undefined;
|
@Prop() params: {[key: string]: any};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user