ADP-Chat-Client
Introduction/UI Components/Layout Components

MainLayout

Main content area layout component

MainLayout

Main content area layout for chat, including header, chat area and bottom warning.

Usage in Vue

<template>
  <MainLayout
    :current-application-name="appName"
    :current-application-avatar="appAvatar"
    :chat-id="chatId"
    :chat-list="chatList"
    :is-chatting="isChatting"
    @send="handleSend"
    @toggle-sidebar="handleToggleSidebar"
  />
</template>

Usage in HTML/React or Other Frameworks

<div id="containerId"></div>
<script>
ADPChatComponent.MainLayout.mount('#containerId', { })
</script>

API

Props

属性名类型默认值说明
currentApplicationAvatarstring''Current application avatar
currentApplicationNamestring''Current application name
currentApplicationGreetingstring''Current application greeting
currentApplicationOpeningQuestionsstring[][]Opening questions list
currentApplicationIdstring''Current application ID
chatIdstring''Current conversation ID
chatListRecord[][]Chat message list
isChattingbooleanfalseWhether chatting
modelOptionsany[][]Model options
selectModelany-Selected model
isDeepThinkingbooleantrueEnable deep thinking mode
isMobilebooleanfalseWhether mobile
theme'light' | 'dark''light'Theme mode
showSidebarTogglebooleantrueShow sidebar toggle button
aiWarningTextstring'AI generated content'AI warning text
i18nobject-i18n text
chatItemI18nobject-ChatItem i18n text
senderI18nobject-Sender i18n text

Slots

插槽名说明
header-close-contentHeader close button area
empty-contentEmpty content area

On this page