From cb795c5827f6e7c0e4d2c1358f27d0862f502b5b Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 06 八月 2025 11:22:55 +0800 Subject: [PATCH] fix: 修改功能模块 --- auto-imports.d.ts | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 54 insertions(+), 5 deletions(-) diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 92e91a2..a5c8e60 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -6,6 +6,7 @@ // biome-ignore lint: disable export {} declare global { + const AppLocalConfig: typeof import('./src/constants/app')['AppLocalConfig'] const AppType: typeof import('./src/constants/app')['AppType'] const AreaType: typeof import('./src/constants/enum')['AreaType'] const AuthorizeType: typeof import('./src/constants/enum')['AuthorizeType'] @@ -32,6 +33,7 @@ const EnumRoleWebApiDataPower: typeof import('./src/constants/apiEnum')['EnumRoleWebApiDataPower'] const EnumRoleWebApiDataPowerText: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText'] const EnumRoleWebApiDataPowerTextForFilter: typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter'] + const EnumUserInfoStatus: typeof import('./src/constants/apiEnum')['EnumUserInfoStatus'] const EnumUserType: typeof import('./src/constants/apiEnum')['EnumUserType'] const EnumUserTypeText: typeof import('./src/constants/apiEnumText')['EnumUserTypeText'] const EnumWebApiMethod: typeof import('./src/constants/apiEnum')['EnumWebApiMethod'] @@ -83,6 +85,7 @@ const VerifyStatusText: typeof import('./src/constants/enterprise')['VerifyStatusText'] const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] const computed: typeof import('vue')['computed'] + const copyTextToClipboard: typeof import('./src/hooks/useCopyToClipboard')['copyTextToClipboard'] const createApp: typeof import('vue')['createApp'] const createPinia: typeof import('pinia')['createPinia'] const customRef: typeof import('vue')['customRef'] @@ -90,9 +93,11 @@ const defineComponent: typeof import('vue')['defineComponent'] const defineStore: typeof import('pinia')['defineStore'] const effectScope: typeof import('vue')['effectScope'] + const eventKey: typeof import('./src/hooks/useEvent')['eventKey'] const getActivePinia: typeof import('pinia')['getActivePinia'] const getCurrentInstance: typeof import('vue')['getCurrentInstance'] const getCurrentScope: typeof import('vue')['getCurrentScope'] + const globalEventContextKey: typeof import('./src/hooks/useEvent')['globalEventContextKey'] const h: typeof import('vue')['h'] const inject: typeof import('vue')['inject'] const isProxy: typeof import('vue')['isProxy'] @@ -140,18 +145,36 @@ const toValue: typeof import('vue')['toValue'] const triggerRef: typeof import('vue')['triggerRef'] const unref: typeof import('vue')['unref'] + const useAccess: typeof import('./src/hooks/useAccess')['useAccess'] + const useAllRoleList: typeof import('./src/hooks/useUser')['useAllRoleList'] const useAttrs: typeof import('vue')['useAttrs'] + const useClearSubModule: typeof import('./src/hooks/useAccess')['useClearSubModule'] + const useCopyToClipboard: typeof import('./src/hooks/useCopyToClipboard')['useCopyToClipboard'] const useCssModule: typeof import('vue')['useCssModule'] const useCssVars: typeof import('vue')['useCssVars'] + const useGlobalEventContext: typeof import('./src/hooks/useEvent')['useGlobalEventContext'] + const useGlobalEventProvide: typeof import('./src/hooks/useEvent')['useGlobalEventProvide'] + const useGroupColumns: typeof import('./src/hooks/useAccess')['useGroupColumns'] + const useGroupOperationBtns: typeof import('./src/hooks/useAccess')['useGroupOperationBtns'] const useId: typeof import('vue')['useId'] + const useIsSystemAdmin: typeof import('./src/hooks/useUser')['useIsSystemAdmin'] const useLink: typeof import('vue-router')['useLink'] - const useLoading: typeof import('@/hooks/global')['useLoading'] + const useLoading: typeof import('./src/hooks/global/useLoading')['useLoading'] + const useMenu: typeof import('./src/hooks/menu')['useMenu'] + const useMenus: typeof import('./src/hooks/menu')['useMenus'] const useModel: typeof import('vue')['useModel'] + const useOmit: typeof import('./src/hooks/help')['useOmit'] + const useOmitProps: typeof import('./src/hooks/help')['useOmitProps'] + const useResizeHander: typeof import('./src/hooks/useResizeHander')['useResizeHander'] const useRoute: typeof import('vue-router')['useRoute'] + const useRouteView: typeof import('./src/hooks/useRouteView')['useRouteView'] const useRouter: typeof import('vue-router')['useRouter'] - const useSetReactive: typeof import('@/hooks/global')['useSetReactive'] + const useSetReactive: typeof import('./src/hooks/global/helper')['useSetReactive'] const useSlots: typeof import('vue')['useSlots'] const useTemplateRef: typeof import('vue')['useTemplateRef'] + const useUser: typeof import('./src/hooks/useUser')['useUser'] + const useVModel: typeof import('./src/hooks/help')['useVModel'] + const useVModels: typeof import('./src/hooks/help')['useVModels'] const watch: typeof import('vue')['watch'] const watchEffect: typeof import('vue')['watchEffect'] const watchPostEffect: typeof import('vue')['watchPostEffect'] @@ -163,7 +186,7 @@ export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' import('vue') // @ts-ignore - export type { EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserType, EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserType } from './src/constants/apiEnum' + export type { EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserInfoStatus, EnumUserType, EnumClientType, EnumMenuType, EnumMenuVisitLevel, EnumPagedListOrder, EnumResourceController, EnumResourceMethod, EnumRoleWebApiDataPower, EnumUserInfoStatus, EnumUserType } from './src/constants/apiEnum' import('./src/constants/apiEnum') // @ts-ignore export type { FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum, FlexWorkerEleSignEnum, FlexTaskWorkerHireEnum } from './src/constants/cPerson' @@ -192,6 +215,9 @@ // @ts-ignore export type { RoleClientType, RoleClientType } from './src/constants/role' import('./src/constants/role') + // @ts-ignore + export type { GlobalEvent, GlobalEventListener, GlobalEventContext } from './src/hooks/useEvent' + import('./src/hooks/useEvent') } // for vue template auto import @@ -199,6 +225,7 @@ declare module 'vue' { interface GlobalComponents {} interface ComponentCustomProperties { + readonly AppLocalConfig: UnwrapRef<typeof import('./src/constants/app')['AppLocalConfig']> readonly AppType: UnwrapRef<typeof import('./src/constants/app')['AppType']> readonly AreaType: UnwrapRef<typeof import('./src/constants/enum')['AreaType']> readonly AuthorizeType: UnwrapRef<typeof import('./src/constants/enum')['AuthorizeType']> @@ -221,6 +248,7 @@ readonly EnumRoleWebApiDataPower: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumRoleWebApiDataPower']> readonly EnumRoleWebApiDataPowerText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerText']> readonly EnumRoleWebApiDataPowerTextForFilter: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumRoleWebApiDataPowerTextForFilter']> + readonly EnumUserInfoStatus: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumUserInfoStatus']> readonly EnumUserType: UnwrapRef<typeof import('./src/constants/apiEnum')['EnumUserType']> readonly EnumUserTypeText: UnwrapRef<typeof import('./src/constants/apiEnumText')['EnumUserTypeText']> readonly FastButtonMap: UnwrapRef<typeof import('./src/constants/module')['FastButtonMap']> @@ -271,6 +299,7 @@ readonly VerifyStatusText: UnwrapRef<typeof import('./src/constants/enterprise')['VerifyStatusText']> readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']> readonly computed: UnwrapRef<typeof import('vue')['computed']> + readonly copyTextToClipboard: UnwrapRef<typeof import('./src/hooks/useCopyToClipboard')['copyTextToClipboard']> readonly createApp: UnwrapRef<typeof import('vue')['createApp']> readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']> readonly customRef: UnwrapRef<typeof import('vue')['customRef']> @@ -278,9 +307,11 @@ readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']> readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']> readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']> + readonly eventKey: UnwrapRef<typeof import('./src/hooks/useEvent')['eventKey']> readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']> readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']> readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']> + readonly globalEventContextKey: UnwrapRef<typeof import('./src/hooks/useEvent')['globalEventContextKey']> readonly h: UnwrapRef<typeof import('vue')['h']> readonly inject: UnwrapRef<typeof import('vue')['inject']> readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']> @@ -328,18 +359,36 @@ readonly toValue: UnwrapRef<typeof import('vue')['toValue']> readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']> readonly unref: UnwrapRef<typeof import('vue')['unref']> + readonly useAccess: UnwrapRef<typeof import('./src/hooks/useAccess')['useAccess']> + readonly useAllRoleList: UnwrapRef<typeof import('./src/hooks/useUser')['useAllRoleList']> readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']> + readonly useClearSubModule: UnwrapRef<typeof import('./src/hooks/useAccess')['useClearSubModule']> + readonly useCopyToClipboard: UnwrapRef<typeof import('./src/hooks/useCopyToClipboard')['useCopyToClipboard']> readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']> readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']> + readonly useGlobalEventContext: UnwrapRef<typeof import('./src/hooks/useEvent')['useGlobalEventContext']> + readonly useGlobalEventProvide: UnwrapRef<typeof import('./src/hooks/useEvent')['useGlobalEventProvide']> + readonly useGroupColumns: UnwrapRef<typeof import('./src/hooks/useAccess')['useGroupColumns']> + readonly useGroupOperationBtns: UnwrapRef<typeof import('./src/hooks/useAccess')['useGroupOperationBtns']> readonly useId: UnwrapRef<typeof import('vue')['useId']> + readonly useIsSystemAdmin: UnwrapRef<typeof import('./src/hooks/useUser')['useIsSystemAdmin']> readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']> - readonly useLoading: UnwrapRef<typeof import('@/hooks/global')['useLoading']> + readonly useLoading: UnwrapRef<typeof import('./src/hooks/global/useLoading')['useLoading']> + readonly useMenu: UnwrapRef<typeof import('./src/hooks/menu')['useMenu']> + readonly useMenus: UnwrapRef<typeof import('./src/hooks/menu')['useMenus']> readonly useModel: UnwrapRef<typeof import('vue')['useModel']> + readonly useOmit: UnwrapRef<typeof import('./src/hooks/help')['useOmit']> + readonly useOmitProps: UnwrapRef<typeof import('./src/hooks/help')['useOmitProps']> + readonly useResizeHander: UnwrapRef<typeof import('./src/hooks/useResizeHander')['useResizeHander']> readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']> + readonly useRouteView: UnwrapRef<typeof import('./src/hooks/useRouteView')['useRouteView']> readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']> - readonly useSetReactive: UnwrapRef<typeof import('@/hooks/global')['useSetReactive']> + readonly useSetReactive: UnwrapRef<typeof import('./src/hooks/global/helper')['useSetReactive']> readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']> readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']> + readonly useUser: UnwrapRef<typeof import('./src/hooks/useUser')['useUser']> + readonly useVModel: UnwrapRef<typeof import('./src/hooks/help')['useVModel']> + readonly useVModels: UnwrapRef<typeof import('./src/hooks/help')['useVModels']> readonly watch: UnwrapRef<typeof import('vue')['watch']> readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']> readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']> -- Gitblit v1.9.1