跳到主要内容

chat-input

<ai-portal.chat-input>

构件 ai-portal.chat-input

Examples

Basic

Playground

Properties

NameDescriptionTypeDefaultRequired
placeholderstring
autoFocusboolean
submitDisabledboolean
supportsTerminateboolean
terminatingboolean
autoFadeboolean
uploadOptionsUploadOptions
aiEmployeesAIEmployee[]
commandsCommand[]
suggestionsPlacement"top" | "bottom" "bottom"

Events

NameDescriptionEvent Detail
message.submitstring
chat.submitChatPayload
terminatevoid

Methods

NameDescriptionParamsReturns
setValuevalue: string

Type references

UploadOptions

NameDescriptionTypeDefaultRequired
enabledboolean
dragDisabledboolean
dragTipsstring
acceptstring
maxFilesnumber
maxSize

In bytes

number
readableAcceptstring
readableMaxSizestring

AIEmployee

NameDescriptionTypeDefaultRequired
employeeIdstring
namestring

Command

NameDescriptionTypeDefaultRequired
labelstring
valuestring
groupKeystring
groupLabelstring
subCommandsCommand[]
payloadCommandPayload

ChatPayload

extends ExtraChatPayload
NameDescriptionTypeDefaultRequired
contentstring

ExtraChatPayload

NameDescriptionTypeDefaultRequired
filesUploadFileInfo[]
cmdCommandPayload | null
aiEmployeeIdstring | null

UploadFileInfo

NameDescriptionTypeDefaultRequired
fileIdstring