From b2f00c4b71ec3288eda61a3c800d280c7f1e8be3 Mon Sep 17 00:00:00 2001
From: LiuHao <liuhaoai545@gmail.com>
Date: 星期五, 26 一月 2024 09:59:32 +0800
Subject: [PATCH] add 增加全局角色选择组件
---
src/types/global.d.ts | 78 ++++++++++++++++++++++++++++++++++++++
1 files changed, 77 insertions(+), 1 deletions(-)
diff --git a/src/types/global.d.ts b/src/types/global.d.ts
index b9bc5f4..17476a3 100644
--- a/src/types/global.d.ts
+++ b/src/types/global.d.ts
@@ -1,4 +1,5 @@
-import type { ComponentInternalInstance as ComponentInstance, PropType as VuePropType } from 'vue';
+import type { PropType as VuePropType, ComponentInternalInstance as ComponentInstance } from 'vue';
+import { LanguageEnum } from '@/enums/LanguageEnum';
declare global {
/** vue Instance */
@@ -13,6 +14,7 @@
key: number;
label: string;
visible: boolean;
+ children?: Array<FieldOption>;
}
/**
@@ -47,6 +49,8 @@
title: string;
/** 鏄惁绂佺敤涓婁紶 */
isUploading: boolean;
+
+ updateSupport: number;
/** 鍏朵粬鍙傛暟 */
[key: string]: any;
@@ -86,5 +90,77 @@
pageNum: number;
pageSize: number;
}
+ declare interface LayoutSetting {
+ /**
+ * 鏄惁鏄剧ず椤堕儴瀵艰埅
+ */
+ topNav: boolean;
+
+ /**
+ * 鏄惁鏄剧ず澶氭爣绛惧鑸�
+ */
+ tagsView: boolean;
+ /**
+ * 鏄惁鍥哄畾澶撮儴
+ */
+ fixedHeader: boolean;
+ /**
+ * 鏄惁鏄剧ず渚ц竟鏍廘ogo
+ */
+ sidebarLogo: boolean;
+ /**
+ * 鏄惁鏄剧ず鍔ㄦ�佹爣棰�
+ */
+ dynamicTitle: boolean;
+ /**
+ * 渚ц竟鏍忎富棰� theme-dark | theme-light
+ */
+ sideTheme: string;
+ /**
+ * 涓婚妯″紡
+ */
+ theme: string;
+ }
+
+ declare interface DefaultSettings extends LayoutSetting {
+ /**
+ * 缃戦〉鏍囬
+ */
+ title: string;
+
+ /**
+ * 鏄惁鏄剧ず绯荤粺甯冨眬璁剧疆
+ */
+ showSettings: boolean;
+
+ /**
+ * 瀵艰埅鏍忓竷灞�
+ */
+ layout: string;
+
+ /**
+ * 甯冨眬澶у皬
+ */
+ size: 'large' | 'default' | 'small';
+
+ /**
+ * 璇█
+ */
+ language: LanguageEnum;
+
+ /**
+ * 鏄惁鍚敤鍔ㄧ敾鏁堟灉
+ */
+ animationEnable: boolean;
+ /**
+ * 鏄惁鍚敤鏆楅粦妯″紡
+ *
+ * true:鏆楅粦妯″紡
+ * false: 鏄庝寒妯″紡
+ */
+ dark: boolean;
+
+ errorLog: string;
+ }
}
export {};
--
Gitblit v1.9.3