mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
- Updated `getShowContentParts` function to handle message content more robustly, ensuring proper display of content parts. - Refactored `GamepadViewer.vue` to use async component loading for `GamepadDisplay`, added a toggle for real-time preview. - Implemented debounced search functionality in `PointGoodsView.vue` for improved performance during keyword searches. - Enhanced `PointOrderView.vue` with order filtering capabilities and added statistics display for better user insights. - Improved `PointUserHistoryView.vue` by adding export functionality for history data and enhanced filtering options. - Updated `PointUserLayout.vue` to improve card styling and tab navigation experience. - Refined `PointUserSettings.vue` layout for better user interaction and added responsive design adjustments. - Adjusted `vite.config.mts` for better dependency management and build optimization.
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
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
|
|
}
|
|
}
|
|
|
|
// Vite worker 与样式类型声明
|
|
declare module '*?worker' {
|
|
const workerConstructor: { new(): Worker }
|
|
export default workerConstructor
|
|
}
|
|
declare module '*.css' {
|
|
const content: string
|
|
export default content
|
|
}
|