update 调整代码格式
This commit is contained in:
Vendored
-4
@@ -2,13 +2,11 @@
|
||||
export {}
|
||||
declare global {
|
||||
const EffectScope: typeof import('vue')['EffectScope']
|
||||
const ElForm: typeof import('element-plus/es')['ElForm']
|
||||
const ElLoading: typeof import('element-plus/es')['ElLoading']
|
||||
const ElMessage: typeof import('element-plus/es')['ElMessage']
|
||||
const ElMessageBox: typeof import('element-plus/es')['ElMessageBox']
|
||||
const ElNotification: typeof import('element-plus/es')['ElNotification']
|
||||
const ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
const ElTable: typeof import('element-plus/es')['ElTable']
|
||||
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
|
||||
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
|
||||
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
|
||||
@@ -288,13 +286,11 @@ import { UnwrapRef } from 'vue'
|
||||
declare module 'vue' {
|
||||
interface ComponentCustomProperties {
|
||||
readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
|
||||
readonly ElForm: UnwrapRef<typeof import('element-plus/es')['ElForm']>
|
||||
readonly ElLoading: UnwrapRef<typeof import('element-plus/es')['ElLoading']>
|
||||
readonly ElMessage: UnwrapRef<typeof import('element-plus/es')['ElMessage']>
|
||||
readonly ElMessageBox: UnwrapRef<typeof import('element-plus/es')['ElMessageBox']>
|
||||
readonly ElNotification: UnwrapRef<typeof import('element-plus/es')['ElNotification']>
|
||||
readonly ElSelect: UnwrapRef<typeof import('element-plus/es')['ElSelect']>
|
||||
readonly ElTable: UnwrapRef<typeof import('element-plus/es')['ElTable']>
|
||||
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
|
||||
readonly asyncComputed: UnwrapRef<typeof import('@vueuse/core')['asyncComputed']>
|
||||
readonly autoResetRef: UnwrapRef<typeof import('@vueuse/core')['autoResetRef']>
|
||||
|
||||
Vendored
+6
-6
@@ -1,10 +1,10 @@
|
||||
import axios from 'axios';
|
||||
|
||||
declare module 'axios' {
|
||||
export interface AxiosResponse<T = any> {
|
||||
code: number;
|
||||
msg: string;
|
||||
rows: T;
|
||||
total: number;
|
||||
}
|
||||
export interface AxiosResponse<T = any> {
|
||||
code: number;
|
||||
msg: string;
|
||||
rows: T;
|
||||
total: number;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
-17
@@ -14,7 +14,6 @@ declare module '@vue/runtime-core' {
|
||||
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
|
||||
ElButton: typeof import('element-plus/es')['ElButton']
|
||||
ElCard: typeof import('element-plus/es')['ElCard']
|
||||
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
|
||||
ElCol: typeof import('element-plus/es')['ElCol']
|
||||
ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
|
||||
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
|
||||
@@ -25,42 +24,26 @@ declare module '@vue/runtime-core' {
|
||||
ElDropdown: typeof import('element-plus/es')['ElDropdown']
|
||||
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
|
||||
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
|
||||
ElForm: typeof import('element-plus/es')['ElForm']
|
||||
ElFormItem: typeof import('element-plus/es')['ElFormItem']
|
||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||
ElImage: typeof import('element-plus/es')['ElImage']
|
||||
ElInput: typeof import('element-plus/es')['ElInput']
|
||||
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
|
||||
ElLink: typeof import('element-plus/es')['ElLink']
|
||||
ElMenu: typeof import('element-plus/es')['ElMenu']
|
||||
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
||||
ElOption: typeof import('element-plus/es')['ElOption']
|
||||
ElPagination: typeof import('element-plus/es')['ElPagination']
|
||||
ElPopover: typeof import('element-plus/es')['ElPopover']
|
||||
ElRadio: typeof import('element-plus/es')['ElRadio']
|
||||
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
|
||||
ElRow: typeof import('element-plus/es')['ElRow']
|
||||
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
|
||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
||||
ElSwitch: typeof import('element-plus/es')['ElSwitch']
|
||||
ElTable: typeof import('element-plus/es')['ElTable']
|
||||
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
|
||||
ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
||||
ElTabs: typeof import('element-plus/es')['ElTabs']
|
||||
ElTag: typeof import('element-plus/es')['ElTag']
|
||||
ElTooltip: typeof import('element-plus/es')['ElTooltip']
|
||||
ElTransfer: typeof import('element-plus/es')['ElTransfer']
|
||||
ElTree: typeof import('element-plus/es')['ElTree']
|
||||
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
|
||||
ElUpload: typeof import('element-plus/es')['ElUpload']
|
||||
FileUpload: typeof import('./../components/FileUpload/index.vue')['default']
|
||||
Hamburger: typeof import('./../components/Hamburger/index.vue')['default']
|
||||
HeaderSearch: typeof import('./../components/HeaderSearch/index.vue')['default']
|
||||
IconSelect: typeof import('./../components/IconSelect/index.vue')['default']
|
||||
IEpCaretBottom: typeof import('~icons/ep/caret-bottom')['default']
|
||||
IEpCaretTop: typeof import('~icons/ep/caret-top')['default']
|
||||
IEpUploadFilled: typeof import('~icons/ep/upload-filled')['default']
|
||||
IFrame: typeof import('./../components/iFrame/index.vue')['default']
|
||||
ImagePreview: typeof import('./../components/ImagePreview/index.vue')['default']
|
||||
ImageUpload: typeof import('./../components/ImageUpload/index.vue')['default']
|
||||
|
||||
Vendored
+35
-35
@@ -1,74 +1,74 @@
|
||||
declare module '*.vue' {
|
||||
import { DefineComponent } from 'vue';
|
||||
const component: DefineComponent<{}, {}, any>;
|
||||
export default component;
|
||||
import { DefineComponent } from 'vue';
|
||||
const component: DefineComponent<{}, {}, any>;
|
||||
export default component;
|
||||
}
|
||||
declare module '*.avif' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.bmp' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.gif' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.jpg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.jpeg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.png' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.webp' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
const src: string;
|
||||
export default src;
|
||||
const src: string;
|
||||
export default src;
|
||||
}
|
||||
|
||||
declare module '*.module.css' {
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module '*.module.scss' {
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
|
||||
declare module '*.module.sass' {
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
const classes: { readonly [key: string]: string };
|
||||
export default classes;
|
||||
}
|
||||
// 环境变量
|
||||
interface ImportMetaEnv {
|
||||
VITE_APP_TITLE: string;
|
||||
VITE_APP_PORT: number;
|
||||
VITE_APP_BASE_API: string;
|
||||
VITE_APP_BASE_URL: string;
|
||||
VITE_APP_CONTEXT_PATH: string;
|
||||
VITE_APP_MONITRO_ADMIN: string;
|
||||
VITE_APP_XXL_JOB_ADMIN: string;
|
||||
VITE_APP_ENV: string;
|
||||
VITE_APP_TITLE: string;
|
||||
VITE_APP_PORT: number;
|
||||
VITE_APP_BASE_API: string;
|
||||
VITE_APP_BASE_URL: string;
|
||||
VITE_APP_CONTEXT_PATH: string;
|
||||
VITE_APP_MONITRO_ADMIN: string;
|
||||
VITE_APP_XXL_JOB_ADMIN: string;
|
||||
VITE_APP_ENV: string;
|
||||
}
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
// readonly glob: any;
|
||||
readonly env: ImportMetaEnv;
|
||||
// readonly glob: any;
|
||||
}
|
||||
|
||||
Vendored
+72
-72
@@ -1,83 +1,83 @@
|
||||
import { FormRules } from 'element-plus';
|
||||
declare global {
|
||||
/**
|
||||
* 界面字段隐藏属性
|
||||
*/
|
||||
interface FieldOption {
|
||||
key: number;
|
||||
label: string;
|
||||
visible: boolean;
|
||||
}
|
||||
/**
|
||||
* 界面字段隐藏属性
|
||||
*/
|
||||
interface FieldOption {
|
||||
key: number;
|
||||
label: string;
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* 弹窗属性
|
||||
*/
|
||||
interface DialogOption {
|
||||
/**
|
||||
* 弹窗标题
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* 是否显示
|
||||
*/
|
||||
visible: boolean;
|
||||
}
|
||||
/**
|
||||
* 弹窗属性
|
||||
*/
|
||||
interface DialogOption {
|
||||
/**
|
||||
* 弹窗标题
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* 是否显示
|
||||
*/
|
||||
visible: boolean;
|
||||
}
|
||||
|
||||
interface UploadOption {
|
||||
/** 设置上传的请求头部 */
|
||||
headers: { [key: string]: any };
|
||||
interface UploadOption {
|
||||
/** 设置上传的请求头部 */
|
||||
headers: { [key: string]: any };
|
||||
|
||||
/** 上传的地址 */
|
||||
url: string;
|
||||
}
|
||||
/** 上传的地址 */
|
||||
url: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入属性
|
||||
*/
|
||||
interface ImportOption extends UploadOption {
|
||||
/** 是否显示弹出层 */
|
||||
open: boolean;
|
||||
/** 弹出层标题 */
|
||||
title: string;
|
||||
/** 是否禁用上传 */
|
||||
isUploading: boolean;
|
||||
/**
|
||||
* 导入属性
|
||||
*/
|
||||
interface ImportOption extends UploadOption {
|
||||
/** 是否显示弹出层 */
|
||||
open: boolean;
|
||||
/** 弹出层标题 */
|
||||
title: string;
|
||||
/** 是否禁用上传 */
|
||||
isUploading: boolean;
|
||||
|
||||
/** 其他参数 */
|
||||
[key: string]: any;
|
||||
}
|
||||
/**
|
||||
* 字典数据 数据配置
|
||||
*/
|
||||
interface DictDataOption {
|
||||
label: string;
|
||||
value: string;
|
||||
elTagType?: ElTagType;
|
||||
elTagClass?: string;
|
||||
}
|
||||
/** 其他参数 */
|
||||
[key: string]: any;
|
||||
}
|
||||
/**
|
||||
* 字典数据 数据配置
|
||||
*/
|
||||
interface DictDataOption {
|
||||
label: string;
|
||||
value: string;
|
||||
elTagType?: ElTagType;
|
||||
elTagClass?: string;
|
||||
}
|
||||
|
||||
interface BaseEntity {
|
||||
createBy?: any;
|
||||
createTime?: string;
|
||||
updateBy?: any;
|
||||
updateTime?: any;
|
||||
}
|
||||
interface BaseEntity {
|
||||
createBy?: any;
|
||||
createTime?: string;
|
||||
updateBy?: any;
|
||||
updateTime?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页数据
|
||||
* T : 表单数据
|
||||
* D : 查询参数
|
||||
*/
|
||||
interface PageData<T, D> {
|
||||
form: T;
|
||||
queryParams: D;
|
||||
rules: FormRules;
|
||||
}
|
||||
/**
|
||||
* 分页查询参数
|
||||
*/
|
||||
interface PageQuery {
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
}
|
||||
/**
|
||||
* 分页数据
|
||||
* T : 表单数据
|
||||
* D : 查询参数
|
||||
*/
|
||||
interface PageData<T, D> {
|
||||
form: T;
|
||||
queryParams: D;
|
||||
rules: FormRules;
|
||||
}
|
||||
/**
|
||||
* 分页查询参数
|
||||
*/
|
||||
interface PageQuery {
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
}
|
||||
}
|
||||
export {};
|
||||
|
||||
Vendored
+16
-16
@@ -8,21 +8,21 @@ import download from '@/plugins/download';
|
||||
import animate from '@/animate';
|
||||
|
||||
declare module 'vue' {
|
||||
export interface ComponentCustomProperties {
|
||||
// 全局方法声明
|
||||
$modal: typeof modal;
|
||||
$tab: typeof tab;
|
||||
$download: typeof download;
|
||||
animate: typeof animate;
|
||||
export interface ComponentCustomProperties {
|
||||
// 全局方法声明
|
||||
$modal: typeof modal;
|
||||
$tab: typeof tab;
|
||||
$download: typeof download;
|
||||
animate: typeof animate;
|
||||
|
||||
useDict: typeof useDict;
|
||||
addDateRange: typeof addDateRange;
|
||||
download: typeof download1;
|
||||
handleTree: typeof handleTree;
|
||||
getConfigKey: typeof getConfigKey;
|
||||
updateConfigByKey: typeof updateConfigByKey;
|
||||
selectDictLabel: typeof selectDictLabel;
|
||||
selectDictLabels: typeof selectDictLabels;
|
||||
parseTime: typeof parseTime;
|
||||
}
|
||||
useDict: typeof useDict;
|
||||
addDateRange: typeof addDateRange;
|
||||
download: typeof download1;
|
||||
handleTree: typeof handleTree;
|
||||
getConfigKey: typeof getConfigKey;
|
||||
updateConfigByKey: typeof updateConfigByKey;
|
||||
selectDictLabel: typeof selectDictLabel;
|
||||
selectDictLabels: typeof selectDictLabels;
|
||||
parseTime: typeof parseTime;
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+28
-28
@@ -1,35 +1,35 @@
|
||||
import { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
declare module 'vue-router' {
|
||||
type RouteOption = {
|
||||
hidden?: boolean;
|
||||
permissions?: string[];
|
||||
roles?: string[];
|
||||
component?: any;
|
||||
children?: RouteOption[];
|
||||
alwaysShow?: boolean;
|
||||
parentPath?: string;
|
||||
meta?: {
|
||||
title: string;
|
||||
icon: string;
|
||||
};
|
||||
} & RouteRecordRaw;
|
||||
type RouteOption = {
|
||||
hidden?: boolean;
|
||||
permissions?: string[];
|
||||
roles?: string[];
|
||||
component?: any;
|
||||
children?: RouteOption[];
|
||||
alwaysShow?: boolean;
|
||||
parentPath?: string;
|
||||
meta?: {
|
||||
title: string;
|
||||
icon: string;
|
||||
};
|
||||
} & RouteRecordRaw;
|
||||
|
||||
interface _RouteLocationBase {
|
||||
children?: RouteOption[];
|
||||
}
|
||||
interface _RouteLocationBase {
|
||||
children?: RouteOption[];
|
||||
}
|
||||
|
||||
interface RouteLocationOptions {
|
||||
fullPath?: string;
|
||||
}
|
||||
interface RouteLocationOptions {
|
||||
fullPath?: string;
|
||||
}
|
||||
|
||||
interface TagView extends Partial<_RouteLocationBase> {
|
||||
title?: string;
|
||||
meta?: {
|
||||
link?: string;
|
||||
title?: string;
|
||||
affix?: boolean;
|
||||
noCache?: boolean;
|
||||
};
|
||||
}
|
||||
interface TagView extends Partial<_RouteLocationBase> {
|
||||
title?: string;
|
||||
meta?: {
|
||||
link?: string;
|
||||
title?: string;
|
||||
affix?: boolean;
|
||||
noCache?: boolean;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+60
-60
@@ -1,70 +1,70 @@
|
||||
declare type DefaultSettings = {
|
||||
/**
|
||||
* 网页标题
|
||||
*/
|
||||
title?: string;
|
||||
/**
|
||||
* 网页标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 侧边栏主题 theme-dark | theme-light
|
||||
*/
|
||||
sideTheme?: string;
|
||||
/**
|
||||
* 侧边栏主题 theme-dark | theme-light
|
||||
*/
|
||||
sideTheme?: string;
|
||||
|
||||
/**
|
||||
* 是否显示系统布局设置
|
||||
*/
|
||||
showSettings?: boolean;
|
||||
/**
|
||||
* 是否显示系统布局设置
|
||||
*/
|
||||
showSettings?: boolean;
|
||||
|
||||
/**
|
||||
* 是否显示顶部导航
|
||||
*/
|
||||
topNav?: boolean;
|
||||
/**
|
||||
* 是否显示顶部导航
|
||||
*/
|
||||
topNav?: boolean;
|
||||
|
||||
/**
|
||||
* 是否显示多标签导航
|
||||
*/
|
||||
tagsView?: boolean;
|
||||
/**
|
||||
* 是否固定头部
|
||||
*/
|
||||
fixedHeader?: boolean;
|
||||
/**
|
||||
* 是否显示侧边栏Logo
|
||||
*/
|
||||
sidebarLogo?: boolean;
|
||||
/**
|
||||
* 导航栏布局
|
||||
*/
|
||||
layout?: string;
|
||||
/**
|
||||
* 主题模式
|
||||
*/
|
||||
theme?: string;
|
||||
/**
|
||||
* 是否显示多标签导航
|
||||
*/
|
||||
tagsView?: boolean;
|
||||
/**
|
||||
* 是否固定头部
|
||||
*/
|
||||
fixedHeader?: boolean;
|
||||
/**
|
||||
* 是否显示侧边栏Logo
|
||||
*/
|
||||
sidebarLogo?: boolean;
|
||||
/**
|
||||
* 导航栏布局
|
||||
*/
|
||||
layout?: string;
|
||||
/**
|
||||
* 主题模式
|
||||
*/
|
||||
theme?: string;
|
||||
|
||||
/**
|
||||
* 布局大小
|
||||
*/
|
||||
size?: string;
|
||||
/**
|
||||
* 布局大小
|
||||
*/
|
||||
size?: string;
|
||||
|
||||
/**
|
||||
* 语言
|
||||
*/
|
||||
language?: string;
|
||||
/**
|
||||
* 语言
|
||||
*/
|
||||
language?: string;
|
||||
|
||||
/**
|
||||
* 是否显示动态标题
|
||||
*/
|
||||
dynamicTitle?: boolean;
|
||||
/**
|
||||
* 是否启用动画效果
|
||||
*/
|
||||
animationEnable?: boolean;
|
||||
/**
|
||||
* 是否启用暗黑模式
|
||||
*
|
||||
* true:暗黑模式
|
||||
* false: 明亮模式
|
||||
*/
|
||||
dark?: boolean;
|
||||
/**
|
||||
* 是否显示动态标题
|
||||
*/
|
||||
dynamicTitle?: boolean;
|
||||
/**
|
||||
* 是否启用动画效果
|
||||
*/
|
||||
animationEnable?: boolean;
|
||||
/**
|
||||
* 是否启用暗黑模式
|
||||
*
|
||||
* true:暗黑模式
|
||||
* false: 明亮模式
|
||||
*/
|
||||
dark?: boolean;
|
||||
|
||||
errorLog?: string;
|
||||
errorLog?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user