feat(projects): new layout,tab and add update theme settings

This commit is contained in:
Soybean
2023-03-13 20:49:33 +08:00
parent 488e6e3204
commit 912c3531c5
30 changed files with 386 additions and 93 deletions

View File

@ -92,6 +92,10 @@ declare namespace Theme {
followSystemTheme: boolean;
/** 布局样式 */
layout: Layout;
/** 滚动模式 */
scrollMode: UnionKey.ThemeScrollMode;
/** 滚动模式列表 */
scrollModeList: Common.OptionWithKey<UnionKey.ThemeScrollMode>[];
/** 主题颜色 */
themeColor: string;
/** 主题颜色列表 */

View File

@ -28,6 +28,13 @@ declare namespace UnionKey {
*/
type ThemeLayoutMode = 'vertical' | 'horizontal' | 'vertical-mix' | 'horizontal-mix';
/**
* 内容溢出时的出现滚动条的方式
* - wrapper 布局组件最外层的元素出现滚动条
* - content 主体内容组件出现滚动条
*/
type ThemeScrollMode = 'wrapper' | 'content';
/**
* 多页签风格
* - chrome: 谷歌风格