Files
vtsuru.live/default.d.ts
Megghy 8bed5bbc1a feat: 更新组件和配置,增强功能和用户体验, 添加签到功能
- 在 .editorconfig 中调整文件格式设置,统一代码风格。
- 在 default.d.ts 中为 naive-ui 添加 TabPaneSlots 接口声明,增强类型支持。
- 在多个组件中优化了模板和样式,提升用户交互体验。
- 在 ClientAutoAction.vue 中新增签到设置标签页,丰富功能选项。
- 在 Utils.ts 中增强 GUID 处理逻辑,增加输入验证和错误处理。
- 更新多个组件的逻辑,简化代码结构,提升可读性和维护性。
2025-04-26 01:35:59 +08:00

35 lines
819 B
TypeScript

import type { DialogProviderInst, LoadingBarProviderInst, MessageProviderInst, ModalProviderInst, NotificationProviderInst } from 'naive-ui'
import type { useRoute } from 'vue-router'
declare module 'vue3-aplayer' {
const content: any
export = content
}
declare module 'file-saver' {
export function saveAs(blob: Blob | null | undefined, fileName: string): void
}
declare module '*.js' {
const content: any
export = content
}
declare module 'naive-ui' {
interface TabPaneSlots {
tab?: () => VNode[]
}
}
declare global {
interface Window {
$message: MessageProviderInst
$loadingBar: LoadingBarProviderInst
$route: ReturnType<typeof useRoute>
$modal: ModalProviderInst
$mitt: Emitter<MittType>
$notification: NotificationProviderInst
$dialog: DialogProviderInst
}
}