Skip to content

Commit

Permalink
feat(abc:avatar-list): set deprecated
Browse files Browse the repository at this point in the history
will be removed in v20, Please use `nz-avatar-group` instead
  • Loading branch information
cipchk committed Nov 13, 2024
1 parent 7a40351 commit 285fe6c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/abc/avatar-list/avatar-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ import { NzTooltipDirective } from 'ng-zorro-antd/tooltip';

import { AvatarListItemComponent } from './avatar-list-item.component';

/**
* @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.
*/
@Component({
selector: 'avatar-list',
exportAs: 'avatarList',
Expand Down
3 changes: 3 additions & 0 deletions packages/abc/avatar-list/avatar-list.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { AvatarListComponent } from './avatar-list.component';

const COMPONENTS = [AvatarListComponent, AvatarListItemComponent];

Check warning on line 10 in packages/abc/avatar-list/avatar-list.module.ts

View workflow job for this annotation

GitHub Actions / lint

'AvatarListComponent' is deprecated. Will be removed in v20, Please use `nz-avatar-group` instead

/**
* @deprecated Will be removed in v20, Please use `nz-avatar-group` instead.
*/
@NgModule({
imports: [CommonModule, NzAvatarModule, NzToolTipModule, ...COMPONENTS],
exports: COMPONENTS
Expand Down
1 change: 1 addition & 0 deletions packages/abc/avatar-list/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: avatar-list
subtitle: AvatarList
cols: 1
module: import { AvatarListModule } from '@delon/abc/avatar-list';
deprecated: 20.0.0
---

A list of user's avatar for project or group member list frequently. If a large or small avatar-list is desired, set the `size` property to either `large` or `small` and `mini` respectively. Omit the `size` property for a avatar-list with the default size.
Expand Down
1 change: 1 addition & 0 deletions packages/abc/avatar-list/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: avatar-list
subtitle: 用户头像列表
cols: 1
module: import { AvatarListModule } from '@delon/abc/avatar-list';
deprecated: 20.0.0
---

一组用户头像,常用在项目/团队成员列表。可通过设置 `size` 属性来指定头像大小。
Expand Down

0 comments on commit 285fe6c

Please sign in to comment.