update: 升级前端核心依赖并完成适配

- 升级 Vue、Vue Router、Element Plus、Vite、UnoCSS、Sass、vue-tsc、oxlint 等前端核心依赖
- 适配依赖升级后的类型检查、键盘事件和 Sass 命名空间写法
- 登录记住功能仅保存用户名和 rememberMe,不再保存密码
- 移除模板中的 scope.row 类型断言,改由处理函数使用 Partial<VO> 承接
This commit is contained in:
疯狂的狮子Li
2026-06-08 18:40:47 +08:00
parent 46fbc9db0b
commit 979bad0275
34 changed files with 1295 additions and 1178 deletions

View File

@@ -1,35 +1,35 @@
import type * as ep from 'element-plus';
declare global {
declare type ElTagType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
declare type ElFormInstance = ep.FormInstance;
declare type ElTableInstance = ep.TableInstance;
declare type ElUploadInstance = ep.UploadInstance;
declare type ElScrollbarInstance = ep.ScrollbarInstance;
declare type ElInputInstance = ep.InputInstance;
declare type ElInputNumberInstance = ep.InputNumberInstance;
declare type ElRadioInstance = ep.RadioInstance;
declare type ElRadioGroupInstance = ep.RadioGroupInstance;
declare type ElRadioButtonInstance = ep.RadioButtonInstance;
declare type ElCheckboxInstance = ep.CheckboxInstance;
declare type ElSwitchInstance = ep.SwitchInstance;
declare type ElCascaderInstance = ep.CascaderInstance;
declare type ElColorPickerInstance = ep.ColorPickerInstance;
declare type ElRateInstance = ep.RateInstance;
declare type ElSliderInstance = ep.SliderInstance;
type ElTagType = 'primary' | 'success' | 'info' | 'warning' | 'danger';
type ElFormInstance = ep.FormInstance;
type ElTableInstance = ep.TableInstance;
type ElUploadInstance = ep.UploadInstance;
type ElScrollbarInstance = ep.ScrollbarInstance;
type ElInputInstance = ep.InputInstance;
type ElInputNumberInstance = ep.InputNumberInstance;
type ElRadioInstance = ep.RadioInstance;
type ElRadioGroupInstance = ep.RadioGroupInstance;
type ElRadioButtonInstance = ep.RadioButtonInstance;
type ElCheckboxInstance = ep.CheckboxInstance;
type ElSwitchInstance = ep.SwitchInstance;
type ElCascaderInstance = ep.CascaderInstance;
type ElColorPickerInstance = ep.ColorPickerInstance;
type ElRateInstance = ep.RateInstance;
type ElSliderInstance = ep.SliderInstance;
declare type ElTreeInstance = InstanceType<typeof ep.ElTree>;
declare type ElTreeSelectInstance = InstanceType<typeof ep.ElTreeSelect>;
declare type ElSelectInstance = InstanceType<typeof ep.ElSelect>;
declare type ElCardInstance = InstanceType<typeof ep.ElCard>;
declare type ElDialogInstance = InstanceType<typeof ep.ElDialog>;
declare type ElCheckboxGroupInstance = InstanceType<typeof ep.ElCheckboxGroup>;
declare type ElDatePickerInstance = InstanceType<typeof ep.ElDatePicker>;
declare type ElTimePickerInstance = InstanceType<typeof ep.ElTimePicker>;
declare type ElTimeSelectInstance = InstanceType<typeof ep.ElTimeSelect>;
type ElTreeInstance = InstanceType<typeof ep.ElTree>;
type ElTreeSelectInstance = InstanceType<typeof ep.ElTreeSelect>;
type ElSelectInstance = InstanceType<typeof ep.ElSelect>;
type ElCardInstance = InstanceType<typeof ep.ElCard>;
type ElDialogInstance = InstanceType<typeof ep.ElDialog>;
type ElCheckboxGroupInstance = InstanceType<typeof ep.ElCheckboxGroup>;
type ElDatePickerInstance = InstanceType<typeof ep.ElDatePicker>;
type ElTimePickerInstance = InstanceType<typeof ep.ElTimePicker>;
type ElTimeSelectInstance = InstanceType<typeof ep.ElTimeSelect>;
declare type TransferKey = ep.TransferKey;
declare type CheckboxValueType = ep.CheckboxValueType;
declare type ElFormRules = ep.FormRules;
declare type DateModelType = ep.DateModelType;
declare type UploadFile = ep.UploadFile;
type TransferKey = ep.TransferKey;
type CheckboxValueType = ep.CheckboxValueType;
type ElFormRules = ep.FormRules;
type DateModelType = ep.DateModelType;
type UploadFile = ep.UploadFile;
}

22
src/types/global.d.ts vendored
View File

@@ -4,12 +4,12 @@ import { NavTypeEnum } from '@/enums/NavTypeEnum';
declare global {
/** vue Instance */
declare type ComponentInternalInstance = ComponentInstance;
type ComponentInternalInstance = ComponentInstance;
/**
* 界面字段隐藏属性
*/
declare interface FieldOption {
interface FieldOption {
key: number;
label: string;
visible: boolean;
@@ -19,7 +19,7 @@ declare global {
/**
* 弹窗属性
*/
declare interface DialogOption {
interface DialogOption {
/**
* 弹窗标题
*/
@@ -30,7 +30,7 @@ declare global {
visible: boolean;
}
declare interface UploadOption {
interface UploadOption {
/** 设置上传的请求头部 */
headers: { [key: string]: any };
@@ -41,7 +41,7 @@ declare global {
/**
* 导入属性
*/
declare interface ImportOption extends UploadOption {
interface ImportOption extends UploadOption {
/** 是否显示弹出层 */
open: boolean;
/** 弹出层标题 */
@@ -57,14 +57,14 @@ declare global {
/**
* 字典数据 数据配置
*/
declare interface DictDataOption {
interface DictDataOption {
label: string;
value: string;
elTagType?: ElTagType;
elTagClass?: string;
}
declare interface BaseEntity {
interface BaseEntity {
createBy?: any;
createDept?: any;
createTime?: string;
@@ -77,7 +77,7 @@ declare global {
* T : 表单数据
* D : 查询参数
*/
declare interface PageData<T, D> {
interface PageData<T, D> {
form: T;
queryParams: D;
rules: ElFormRules;
@@ -85,11 +85,11 @@ declare global {
/**
* 分页查询参数
*/
declare interface PageQuery {
interface PageQuery {
pageNum: number;
pageSize: number;
}
declare interface LayoutSetting {
interface LayoutSetting {
/**
* 默认布局
*/
@@ -133,7 +133,7 @@ declare global {
radiusBase: number;
}
declare interface DefaultSettings extends LayoutSetting {
interface DefaultSettings extends LayoutSetting {
/**
* 网页标题
*/