Introduction/UI Components/Layout Components
SideLayout
Sidebar layout component
SideLayout
Sidebar layout containing application list, conversation list, user info and settings.
Usage in Vue
Usage in HTML/React or Other Frameworks
API
Props
| 属性名 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| visible | boolean | true | Whether sidebar visible |
| applications | Application[] | [] | Application list |
| currentApplicationId | string | '' | Current application ID |
| conversations | ChatConversation[] | [] | Conversation list |
| currentConversationId | string | '' | Current conversation ID |
| userAvatarUrl | string | '' | User avatar URL |
| userAvatarName | string | '' | User avatar text |
| userName | string | '' | User name |
| theme | 'light' | 'dark' | 'light' | Theme mode |
| languageOptions | LanguageOption[] | zh/en | Language options |
| isMobile | boolean | false | Whether mobile |
| maxAppLen | number | 4 | Max application display count |
| i18n | object | - | i18n text |
Slots
| 插槽名 | 说明 |
|---|---|
| sider-logo | Logo area |