fix(vxe-table): 修复 vxe-table 事件参数兼容性问题
- 移除 VxeTableCompat 组件,改用依赖补丁方式处理事件参数归一化 - 在 patch-deps-plugin 中新增 vxe-table table.js 模块拦截和补丁逻辑 - 通过动态修改 vxe-table 源码实现 cell-click 和 current-change 事件参数标准化 - 修正了 vxe-table 与 el-table 事件参数格式不一致导致的组件交互问题 - 清理了全局组件注册中的兼容层引用 - 优化了事件处理流程,提升组件间通信的一致性
This commit is contained in:
@@ -2,7 +2,6 @@ import {createApp, nextTick} from 'vue';
|
||||
|
||||
import VxeUIAll from 'vxe-table';
|
||||
import 'vxe-table/lib/style.css';
|
||||
import VxeTableCompat from '@/components/VxeTableCompat';
|
||||
import Cookies from 'js-cookie';
|
||||
|
||||
// 导入 hiprint 并挂载到全局 window 对象
|
||||
@@ -123,8 +122,6 @@ app.use(ElementPlus, {
|
||||
size: Cookies.get('size') || 'default',
|
||||
});
|
||||
app.use(VxeUIAll);
|
||||
// 全局注册 vxe-table 兼容层:归一化 cell-click/current-change 事件参数
|
||||
app.component('vxe-table', VxeTableCompat);
|
||||
|
||||
// 导入公告帮助工具
|
||||
import { initNoticePopupAfterLogin } from '@/utils/noticeHelper'
|
||||
|
||||
Reference in New Issue
Block a user