
API#
[nz-popover]#
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
[nzPopoverTitle] |
标题 | string | TemplateRef<void> |
- |
[nzPopoverContent] |
用于定义内容 | string | TemplateRef<void> |
- |
[nzPopoverTrigger] |
触发行为,为 null 时不响应光标事件 |
'click' | 'focus' | 'hover' | null |
'hover' |
[nzPopoverPlacement] |
气泡框位置 | 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom' |
'top' |
从 8.2.0 版本开始,以上 API 对应的无前缀 API,如
nzTitle已被废除,请及时迁移。
更多属性请参考 Tooltip。
注意#
请确保 nz-popover 的子元素能接受 onMouseEnter、onMouseLeave、onFocus、onClick 事件。




近期评论