Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4aa6048

Browse files
committed
fix(sidebar-nav-link): missing routerLinkActiveOptions, IsActiveMatchOptions, types update
1 parent1b65d4c commit4aa6048

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

‎projects/coreui-angular/src/lib/coreui.types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import{IsActiveMatchOptions}from'@angular/router';
2+
13
exportenumBreakpointInfix{
24
xs='xs',
35
sm='sm',
@@ -130,7 +132,7 @@ export interface INavLinkProps {
130132
skipLocationChange?:boolean;
131133
replaceUrl?:boolean;
132134
state?:{[k:string]:any};
133-
routerLinkActiveOptions?:{exact:boolean};
135+
routerLinkActiveOptions?:{exact:boolean}|IsActiveMatchOptions;
134136
routerLinkActive?:string|string[];
135137
}
136138

‎projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav-link.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
[state]="item.linkProps?.state ?? {}"
3131
[routerLink]="item.url"
3232
routerLinkActive="active"
33+
[routerLinkActiveOptions]="item.linkProps?.routerLinkActiveOptions ?? { exact: false }"
3334
(click)="linkClicked()"
3435
>
3536
<!-- [class.active]="linkActive"-->

‎projects/coreui-angular/src/lib/sidebar/sidebar-nav/sidebar-nav.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import{IsActiveMatchOptions}from'@angular/router';
2+
13
exportinterfaceINavAttributes{
24
[propName:string]:any;
35
}
@@ -20,14 +22,14 @@ export interface INavLabel {
2022
}
2123

2224
exportinterfaceINavLinkProps{
23-
queryParams?:{[k:string]:any};
25+
queryParams?:{[k:string]:any};
2426
fragment?:string;
25-
queryParamsHandling?:'merge'|'preserve'|'';
27+
queryParamsHandling?:'merge'|'preserve'|''|null;
2628
preserveFragment?:boolean;
2729
skipLocationChange?:boolean;
2830
replaceUrl?:boolean;
29-
state?:{[k:string]:any};
30-
routerLinkActiveOptions?:{exact:boolean};
31+
state?:{[k:string]:any};
32+
routerLinkActiveOptions?:{exact:boolean}|IsActiveMatchOptions;
3133
routerLinkActive?:string|string[];
3234
}
3335

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp