Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(abc:avatar-list): set deprecated #1848

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -7,8 +7,11 @@
import { AvatarListItemComponent } from './avatar-list-item.component';
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
Loading