From e181f04c642204e79749af93fa921875ff6c21ba Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期二, 20 五月 2025 10:46:35 +0800 Subject: [PATCH] refactor(qms): 重构趋势图展示逻辑 --- src/types/global.d.ts | 81 ++++++++++++++++++++++++++++++++++++++-- 1 files changed, 77 insertions(+), 4 deletions(-) diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 130f855..229e181 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -1,10 +1,9 @@ -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 */ declare type ComponentInternalInstance = ComponentInstance; - /**vue */ - declare type PropType<T> = VuePropType<T>; /** * 鐣岄潰瀛楁闅愯棌灞炴�� @@ -13,7 +12,7 @@ key: number; label: string; visible: boolean; - children: Array<FieldOption>; + children?: Array<FieldOption>; } /** @@ -48,6 +47,8 @@ title: string; /** 鏄惁绂佺敤涓婁紶 */ isUploading: boolean; + + updateSupport: number; /** 鍏朵粬鍙傛暟 */ [key: string]: any; @@ -87,5 +88,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