feat: 添加默认分页数量偏好设置.

This commit is contained in:
lijiahang
2023-11-24 16:48:47 +08:00
parent 51f0e83b3a
commit a9658b57dd
19 changed files with 242 additions and 54 deletions

View File

@@ -15,6 +15,9 @@ const defaultConfig: AppState = {
tabBar: true,
menuWidth: 220,
colorWeak: false,
// 用户偏好-数据设置
defaultPageSize: 10,
defaultCardSize: 12,
// 用户偏好-页面视图
hostView: 'table',
hostKeyView: 'table',

View File

@@ -5,7 +5,7 @@ type ViewType = 'table' | 'card' | undefined;
/**
* 应用状态
*/
export interface AppState extends AppSetting, UserPreferenceLayout, UserPreferenceViews {
export interface AppState extends AppSetting, UserPreferenceLayout, UserPreferenceData, UserPreferenceViews {
[key: string]: unknown;
}
@@ -32,6 +32,14 @@ export interface UserPreferenceLayout {
colorWeak: boolean;
}
/**
* 用户偏好 - 数据设置
*/
export interface UserPreferenceData {
defaultPageSize: number;
defaultCardSize: number;
}
/**
* 用户偏好 - 页面视图
*/