回退vxe版本
This commit is contained in:
3
types/components.d.ts
vendored
3
types/components.d.ts
vendored
@ -1,7 +1,6 @@
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
Icon: typeof import('@/components/Icon')['Icon']
|
||||
DictTag: typeof import('@/components/DictTag')['DictTag']
|
||||
Icon: typeof import('../components/Icon/src/Icon.vue')['default']
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
26
types/global.d.ts
vendored
26
types/global.d.ts
vendored
@ -1,29 +1,29 @@
|
||||
export {}
|
||||
declare global {
|
||||
interface Fn<T = any> {
|
||||
declare interface Fn<T = any> {
|
||||
(...arg: T[]): T
|
||||
}
|
||||
|
||||
type Nullable<T> = T | null
|
||||
declare type Nullable<T> = T | null
|
||||
|
||||
type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|
||||
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|
||||
|
||||
type Recordable<T = any, K = string> = Record<K extends null | undefined ? string : K, T>
|
||||
declare type Recordable<T = any, K = string> = Record<K extends null | undefined ? string : K, T>
|
||||
|
||||
type ComponentRef<T> = InstanceType<T>
|
||||
declare type ComponentRef<T> = InstanceType<T>
|
||||
|
||||
type LocaleType = 'zh-CN' | 'en'
|
||||
declare type LocaleType = 'zh-CN' | 'en'
|
||||
|
||||
type AxiosHeaders =
|
||||
declare type AxiosHeaders =
|
||||
| 'application/json'
|
||||
| 'application/x-www-form-urlencoded'
|
||||
| 'multipart/form-data'
|
||||
|
||||
type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT'
|
||||
declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put' | 'GET' | 'POST' | 'DELETE' | 'PUT'
|
||||
|
||||
type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
|
||||
declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
|
||||
|
||||
interface AxiosConfig {
|
||||
declare interface AxiosConfig {
|
||||
params?: any
|
||||
data?: any
|
||||
url?: string
|
||||
@ -32,17 +32,17 @@ declare global {
|
||||
responseType?: AxiosResponseType
|
||||
}
|
||||
|
||||
interface IResponse<T = any> {
|
||||
declare interface IResponse<T = any> {
|
||||
code: string
|
||||
data: T extends any ? T : T & any
|
||||
}
|
||||
|
||||
interface PageParam {
|
||||
declare interface PageParam {
|
||||
pageSize?: number
|
||||
pageNo?: number
|
||||
}
|
||||
|
||||
interface Tree {
|
||||
declare interface Tree {
|
||||
id: number
|
||||
name: string
|
||||
children?: Tree[] | any[]
|
||||
|
||||
4
types/router.d.ts
vendored
4
types/router.d.ts
vendored
@ -54,7 +54,7 @@ type Component<T = any> =
|
||||
| (() => Promise<T>)
|
||||
|
||||
declare global {
|
||||
interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
declare interface AppRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
name: string
|
||||
meta: RouteMeta
|
||||
component?: Component | string
|
||||
@ -64,7 +64,7 @@ declare global {
|
||||
keepAlive?: boolean
|
||||
}
|
||||
|
||||
interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
declare interface AppCustomRouteRecordRaw extends Omit<RouteRecordRaw, 'meta'> {
|
||||
icon: any
|
||||
name: string
|
||||
meta: RouteMeta
|
||||
|
||||
Reference in New Issue
Block a user