feat: init

This commit is contained in:
ygx
2026-03-05 23:45:39 +08:00
commit 8fab91c5c7
214 changed files with 33682 additions and 0 deletions

10
src/types/echarts.ts Normal file
View File

@@ -0,0 +1,10 @@
import { CallbackDataParams } from 'echarts/types/dist/shared'
export interface ToolTipFormatterParams extends CallbackDataParams {
axisDim: string
axisIndex: number
axisType: string
axisId: string
axisValue: string
axisValueLabel: string
}

11
src/types/env.d.ts vendored Normal file
View File

@@ -0,0 +1,11 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_BASE_URL?: string
// 在这里可以继续补充其他 VITE_ 前缀的环境变量
}
interface ImportMeta {
readonly env: ImportMetaEnv
}

37
src/types/global.ts Normal file
View File

@@ -0,0 +1,37 @@
export interface AnyObject {
[key: string]: unknown
}
export interface Options {
value: unknown
label: string
}
export interface NodeOptions extends Options {
children?: NodeOptions[]
}
export interface GetParams {
body: null
type: string
url: string
}
export interface PostData {
body: string
type: string
url: string
}
export interface Pagination {
current: number
pageSize: number
total?: number
}
export type TimeRanger = [string, string]
export interface GeneralChart {
xAxis: string[]
data: Array<{ name: string; value: number[] }>
}

5
src/types/mock.ts Normal file
View File

@@ -0,0 +1,5 @@
export interface MockParams {
url: string
type: string
body: string
}

9
src/types/shims.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
declare module '@arco-design/web-vue/es/form' {
export * from '@arco-design/web-vue'
}
declare module '*.png' {
const src: string
export default src
}

9
src/types/vue-i18n.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
import type { Composer } from 'vue-i18n'
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$t: any
}
}
export {}