Skip to content

Commit

Permalink
refactor(all): use the transform attribute of @input() instead of @In…
Browse files Browse the repository at this point in the history
…putBoolean() and @InputNumber()
  • Loading branch information
minlovehua committed Apr 3, 2024
1 parent e076819 commit c0d0e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/table/table-column.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ export class ThyTableColumnComponent implements OnInit {
* 当前列是否是操作列,设置为 true 时会追加 thy-operation-links 样式类,文字居中
* @default false
*/
@Input({ alias: 'thyOperational', transform: booleanAttribute }) operational: boolean | string;
@Input({ alias: 'thyOperational', transform: booleanAttribute }) operational: boolean;

/**
* 当前列是否是次要列,设置为 true 时会追加 thy-table-column-secondary 样式类,文字颜色为 $gray-600
* @default false
*/
@Input({ alias: 'thySecondary', transform: booleanAttribute }) secondary: boolean | string;
@Input({ alias: 'thySecondary', transform: booleanAttribute }) secondary: boolean;

/**
* 列排序修改事件
Expand Down

0 comments on commit c0d0e63

Please sign in to comment.