feat: 添加默认分页数量偏好设置.
This commit is contained in:
@@ -15,6 +15,9 @@ const defaultConfig: AppState = {
|
||||
tabBar: true,
|
||||
menuWidth: 220,
|
||||
colorWeak: false,
|
||||
// 用户偏好-数据设置
|
||||
defaultPageSize: 10,
|
||||
defaultCardSize: 12,
|
||||
// 用户偏好-页面视图
|
||||
hostView: 'table',
|
||||
hostKeyView: 'table',
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 用户偏好 - 页面视图
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user