mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
chore(router): move route-link, router-controller to separate directories
This commit is contained in:
6
packages/core/src/components.d.ts
vendored
6
packages/core/src/components.d.ts
vendored
@ -2379,7 +2379,7 @@ declare global {
|
||||
|
||||
import {
|
||||
RouteLink as IonRouteLink
|
||||
} from './components/router/route-link';
|
||||
} from './components/route-link/route-link';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonRouteLinkElement extends IonRouteLink, HTMLElement {
|
||||
@ -2411,7 +2411,7 @@ declare global {
|
||||
|
||||
import {
|
||||
Route as IonRoute
|
||||
} from './components/router/route';
|
||||
} from './components/route/route';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonRouteElement extends IonRoute, HTMLElement {
|
||||
@ -2444,7 +2444,7 @@ declare global {
|
||||
|
||||
import {
|
||||
RouterController as IonRouterController
|
||||
} from './components/router/router-controller';
|
||||
} from './components/router-controller/router-controller';
|
||||
|
||||
declare global {
|
||||
interface HTMLIonRouterControllerElement extends IonRouterController, HTMLElement {
|
||||
|
53
packages/core/src/components/route/readme.md
Normal file
53
packages/core/src/components/route/readme.md
Normal file
@ -0,0 +1,53 @@
|
||||
# ion-route
|
||||
|
||||
|
||||
|
||||
<!-- Auto Generated Below -->
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
#### component
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### path
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### props
|
||||
|
||||
any
|
||||
|
||||
|
||||
## Attributes
|
||||
|
||||
#### component
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### path
|
||||
|
||||
string
|
||||
|
||||
|
||||
#### props
|
||||
|
||||
any
|
||||
|
||||
|
||||
## Events
|
||||
|
||||
#### ionRouteAdded
|
||||
|
||||
|
||||
#### ionRouteRemoved
|
||||
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
*Built by [StencilJS](https://stenciljs.com/)*
|
@ -1,5 +1,5 @@
|
||||
import { Component, Event, EventEmitter, Prop } from '@stencil/core';
|
||||
import { RouterEntry, parseURL } from './router-utils';
|
||||
import { RouterEntry, parseURL } from '../router-controller/router-utils';
|
||||
|
||||
|
||||
@Component({
|
11
packages/core/src/components/router-controller/readme.md
Normal file
11
packages/core/src/components/router-controller/readme.md
Normal file
@ -0,0 +1,11 @@
|
||||
# ion-router-controller
|
||||
|
||||
|
||||
|
||||
<!-- Auto Generated Below -->
|
||||
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
*Built by [StencilJS](https://stenciljs.com/)*
|
@ -2,6 +2,7 @@ import { Component, Listen, Prop } from '@stencil/core';
|
||||
import { RouterSegments, generateURL, parseURL, readNavState, writeNavState } from './router-utils';
|
||||
import { Config } from '../../index';
|
||||
|
||||
|
||||
@Component({
|
||||
tag: 'ion-router-controller'
|
||||
})
|
2
packages/core/src/index.d.ts
vendored
2
packages/core/src/index.d.ts
vendored
@ -118,7 +118,7 @@ export {
|
||||
RouterEntry,
|
||||
RouterEntries,
|
||||
NavState,
|
||||
} from './components/router/router-utils';
|
||||
} from './components/router-controller/router-utils';
|
||||
export { Row } from './components/row/row';
|
||||
export { ItemReorder } from './components/reorder/reorder';
|
||||
export { Scroll, ScrollCallback, ScrollDetail } from './components/scroll/scroll';
|
||||
|
Reference in New Issue
Block a user