refactor: fix popup component zIndex (#5397)

This commit is contained in:
Netfan
2025-01-15 12:32:03 +08:00
committed by GitHub
parent 27a3888e35
commit 13087a10b7
21 changed files with 62 additions and 76 deletions

View File

@@ -1,11 +1,7 @@
import { createApp, watchEffect } from 'vue';
import { registerAccessDirective } from '@vben/access';
import {
initTippy,
setDefaultDrawerProps,
setDefaultModalProps,
} from '@vben/common-ui';
import { initTippy } from '@vben/common-ui';
import { preferences } from '@vben/preferences';
import { initStores } from '@vben/stores';
import '@vben/styles';
@@ -24,15 +20,14 @@ async function bootstrap(namespace: string) {
// 初始化组件适配器
await initComponentAdapter();
// 设置弹窗的默认配置
setDefaultModalProps({
fullscreenButton: false,
zIndex: 1020,
});
// 设置抽屉的默认配置
setDefaultDrawerProps({
zIndex: 1020,
});
// // 设置弹窗的默认配置
// setDefaultModalProps({
// fullscreenButton: false,
// });
// // 设置抽屉的默认配置
// setDefaultDrawerProps({
// // zIndex: 1020,
// });
const app = createApp(App);