构件 ai-portal.chat-panel
弹出式 AI 对话面板,提供一个模态框样式的聊天界面,支持与 AI 助手进行对话交互。
Examples
Basic
Properties
| Name | Description | Type | Default | Required |
|---|
panelTitle | | string | | |
aiEmployeeId | | string | | |
cmd | | CommandPayload | | |
width | | string | number | | |
height | | string | number | | |
placeholder | | string | | |
uploadOptions | | UploadOptions | | |
Methods
Type references
CommandPayloadServiceFlowStart
extends BaseCommandPayload
| Name | Description | Type | Default | Required |
|---|
type | | "serviceflow-start" | | ✅ |
payload | | { spaceInstanceId: string; spaceName?: string; flowInstanceId?: string; flowName?: string } | | ✅ |
BaseCommandPayload
| Name | Description | Type | Default | Required |
|---|
type | | string | | ✅ |
payload | | unknown | | |
CommandPayloadServiceFlowCreate
extends BaseCommandPayload
| Name | Description | Type | Default | Required |
|---|
type | | "serviceflow-create" | | ✅ |
payload | | { spaceInstanceId: string; spaceName?: string } | | ✅ |
CommandPayloadServiceFlowEdit
extends BaseCommandPayload
| Name | Description | Type | Default | Required |
|---|
type | | "serviceflow-edit" | | ✅ |
payload | | { spaceInstanceId: string; spaceName?: string; flowInstanceId: string; flowName?: string } | | ✅ |
CommandPayloadGoalPlan
extends BaseCommandPayload
| Name | Description | Type | Default | Required |
|---|
type | | "goal-plan" | | ✅ |
payload | | { goalId: string; goalName?: string; description?: string } | | ✅ |
LegacyCommandPayloadServiceFlowStarting
| Name | Description | Type | Default | Required |
|---|
type | | "serviceFlowStarting" | | ✅ |
serviceFlowStarting | | { spaceInstanceId?: string; spaceName?: string; flowInstanceId?: string; flowName?: string } | | ✅ |
UploadOptions
| Name | Description | Type | Default | Required |
|---|
enabled | | boolean | | |
dragDisabled | | boolean | | |
dragTips | | string | | |
accept | | string | | |
maxFiles | | number | | |
maxSize | In bytes | number | | |
readableAccept | | string | | |
readableMaxSize | | string | | |
ChatPayload
extends ExtraChatPayload
| Name | Description | Type | Default | Required |
|---|
content | | string | | ✅ |
UploadFileInfo
| Name | Description | Type | Default | Required |
|---|
fileId | | string | | ✅ |
FileInfo
| Name | Description | Type | Default | Required |
|---|
name | | string | | |
mimeType | | string | | |
size | | number | | |
bytes | | string | | |
uri | | string | | |
CommandPayload
CommandPayloadServiceFlowStart | CommandPayloadServiceFlowCreate | CommandPayloadServiceFlowEdit | CommandPayloadGoalPlan | LegacyCommandPayloadServiceFlowStarting