Comment评论

对网站内容的反馈、评价和讨论。

何时使用#

评论组件可用于对事物的讨论,例如页面、博客文章、问题等等。

import { NzCommentModule } from 'ng-zorro-antd/comment';

代码演示

We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • 0
  • Reply to

一个基本的评论组件,带有作者、头像、时间和操作。

expand codeexpand code
加载中

We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • Reply to

We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • Reply to

配合 nz-list 组件展现评论列表。

expand codeexpand code
加载中

We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • Reply to

We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • Reply to

We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • Reply to

We supply a series of design principles, practical patterns and high quality design resources(Sketch and Axure), to help people create their product prototypes beautifully and efficiently.

  • Reply to

评论可以嵌套。

expand codeexpand code
加载中

评论编辑器组件提供了相同样式的封装以支持自定义评论编辑器。

expand codeexpand code
加载中

API#

nz-comment#

PropertyDescriptionTypeDefault
[nzAuthor]显示评论的作者string | TemplateRef<void>-
[nzDatetime]展示时间描述string | TemplateRef<void>-

[nz-comment-avatar]#

要显示为评论头像的元素。

nz-comment-content#

评论的主要内容。

nz-comment-action#

在评论内容下面呈现的操作项。