ai-manus/chat-client/types/theme.d.ts

125 lines
2.2 KiB
TypeScript
Raw Normal View History

2025-07-18 16:38:18 +08:00
declare type LayoutName =
/**
*
*/
| 'horizontal'
/**
*
*/
| 'vertical'
/**
*
*/
| 'column'
/**
*
*/
| 'comprehensive'
/**
*
*/
| 'common'
/**
*
*/
| 'float'
| string
declare type ThemeName =
| 'blue-black'
| 'blue-white'
| 'green-black'
| 'green-white'
| 'ocean'
| 'red-white'
| 'red-black'
| string
declare type Background =
/**
*
*/
| 'none'
/**
*
*/
| 'vab-background'
| string
declare type ColumnStyle =
/**
*
*/
| 'horizontal'
/**
*
*/
| 'vertical'
/**
*
*/
| 'card'
/**
*
*/
| 'arrow'
| string
declare type TabsBarStyle =
/**
*
*/
| 'card'
/**
*
*/
| 'smart'
/**
* smooth
*/
| 'smooth'
| string
declare interface ThemeType {
// 布局名称
layout: LayoutName
// 主题名称
themeName: ThemeName
// 菜单背景
background: Background
// 分栏风格(仅针对分栏布局column时生效)
columnStyle: ColumnStyle
// 是否固定头部固定
fixedHeader: boolean
// 纵向布局、常规布局、综合布局时是否默认收起左侧菜单(不支持分栏布局、横向布局)
foldSidebar: boolean
// 菜单宽度仅支持px建议大小266px、277px、288px其余尺寸会影响美观
menuWidth: string
// 是否开启顶部进度条
showProgressBar: boolean
// 是否开启标签页
showTabs: boolean
// 显示标签页时标签页样式
tabsBarStyle: TabsBarStyle
// 是否标签页图标
showTabsIcon: boolean
// 是否开启语言选择组件
showLanguage: boolean
// 是否开启刷新组件
showRefresh: boolean
// 是否开启搜索组件
showSearch: boolean
// 是否开启主题组件
showTheme: boolean
// 是否开启通知组件
showNotice: boolean
// 是否开启全屏组件
showFullScreen: boolean
// 是否开启右侧悬浮窗
showThemeSetting: boolean
// 是否开启页面动画
showPageTransition: boolean
// 是否开启锁屏
showLock: boolean
}