Conversations 管理对话
使用 |
文档 |
何时使用#
- 需要对多个对话进行管理
- 查看历史对话列表
代码演示 #
- Conversation Item 1
- Conversation Item 2
- This's Conversation Item 3, you can click me!
- Conversation Item 4
加载中
- Conversation Item 1
- Conversation Item 2
- Conversation Item 3
加载中
API#
nx-conversations#
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
[nxActiveKey] | 当前选中的值 | string | - |
[nxDefaultActiveKey] | 默认选中值 | string | - |
[nxItems] | 会话列表数据源 | NxConversation[] | - |
[nxMenu] | 会话操作菜单 | NzMenu[] | - |
(nxActiveChange) | 选中变更回调 | EventEmitter<string> | - |
Interfaces#
interface NxConversation {
key: string;
label: string | TemplateRef<void>;
icon?: string | TemplateRef<void>;
disabled?: boolean;
}
interface NxMenu {
key?: string;
label: string | TemplateRef<void>;
icon?: string | TemplateRef<void>;
disabled?: boolean;
danger?: boolean;
}