卡片结构

This commit is contained in:
lijiahangmax
2023-09-28 01:30:25 +08:00
parent 8654309c20
commit 93edcd216a
6 changed files with 140 additions and 20 deletions

View File

@@ -16,9 +16,9 @@ const defaultConfig: AppState = {
menuWidth: 220,
colorWeak: false,
// 用户偏好-页面视图
host: 'table',
hostKeys: 'table',
hostIdentity: 'table',
hostView: 'table',
hostKeyView: 'table',
hostIdentityView: 'table',
};
export default defineStore('app', {

View File

@@ -1,6 +1,6 @@
export type Theme = 'light' | 'dark'
export type Device = 'desktop' | 'mobile'
export type ViewType = 'table' | 'card'
export type ViewType = 'table' | 'card' | undefined
/**
* 应用状态
@@ -36,7 +36,7 @@ export interface UserPreferenceLayout {
* 用户偏好 - 页面视图
*/
export interface UserPreferenceViews {
host: ViewType | string;
hostKeys: ViewType | string;
hostIdentity: ViewType | string;
hostView: ViewType;
hostKeyView: ViewType;
hostIdentityView: ViewType;
}