refactor: 自动导入修改和项目重构优化
Former-commit-id: 100ab2e0092d96b17146163759aef897e5c14fbd
This commit is contained in:
9
types/components.d.ts
vendored
9
types/components.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
// 全局组件类型声明
|
||||
import Pagination from '@/components/Pagination/index.vue';
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
Pagination: typeof Pagination;
|
||||
}
|
||||
}
|
||||
export {};
|
||||
19
types/env.d.ts
vendored
19
types/env.d.ts
vendored
@@ -1,19 +0,0 @@
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue';
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
||||
const component: DefineComponent<{}, {}, any>;
|
||||
export default component;
|
||||
}
|
||||
|
||||
// 环境变量 TypeScript的智能提示
|
||||
interface ImportMetaEnv {
|
||||
VITE_APP_TITLE: string;
|
||||
VITE_APP_PORT: string;
|
||||
VITE_APP_BASE_API: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
23
types/global.d.ts
vendored
23
types/global.d.ts
vendored
@@ -1,23 +0,0 @@
|
||||
declare global {
|
||||
interface PageQuery {
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
}
|
||||
|
||||
interface PageResult<T> {
|
||||
list: T;
|
||||
total: number;
|
||||
}
|
||||
type DialogType = {
|
||||
title?: string;
|
||||
visible: boolean;
|
||||
};
|
||||
|
||||
type OptionType = {
|
||||
value: string;
|
||||
label: string;
|
||||
checked?: boolean;
|
||||
children?: OptionType[];
|
||||
};
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user