fix: 修改Vxe默认zIndex为995 解决右上角全屏后modal/drawer(zIndex: 1000)被遮挡

This commit is contained in:
dap
2025-01-14 14:10:40 +08:00
parent ee9c271854
commit 2bef75e044
2 changed files with 9 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
- 字典项为空时getDict方法无限调用接口(无奈兼容 不给字典item本来就是错误用法) - 字典项为空时getDict方法无限调用接口(无奈兼容 不给字典item本来就是错误用法)
- 表格排序翻页会丢失排序参数 - 表格排序翻页会丢失排序参数
- 修改Vxe默认zIndex为995 解决右上角全屏后modal/drawer(zIndex: 1000)被遮挡
**OTHERS** **OTHERS**

View File

@@ -13,6 +13,14 @@ import { useVbenForm } from './form';
setupVbenVxeTable({ setupVbenVxeTable({
configVxeTable: (vxeUI) => { configVxeTable: (vxeUI) => {
vxeUI.setConfig({ vxeUI.setConfig({
/**
* @see https://vxetable.cn/#/start/z-index
* 设置Vxe全局的zIndex
* 点击右上角全屏zIndex为1003 modal/drawer的zIndex为1000 新增/编辑表单会造成遮挡
* 在这里修改为<1000即可解决遮挡问题
* 全屏为995+3=998 全屏会增加3
*/
zIndex: 995,
grid: { grid: {
align: 'center', align: 'center',
border: false, border: false,