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

Commit88a962f

Browse files
committed
fix(table-color): allow undefined type for color input prop
1 parentd9cc821 commit88a962f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎projects/coreui-angular/src/lib/table/table-color.directive.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ export class TableColorDirective {
1313
* Use contextual color for tables, table rows or individual cells.
1414
*@return Colors
1515
*/
16-
readonlycolor=input<Colors>(undefined,{alias:'cTableColor'});
16+
readonlycolor=input<Colors|undefined>(undefined,{alias:'cTableColor'});
1717

1818
readonlyhostClasses=computed(()=>{
19+
constcolor=this.color();
1920
return{
20-
[`table-${this.color()}`]:!!this.color()
21+
[`table-${color}`]:!!color
2122
}asRecord<string,boolean>;
2223
});
2324
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp