|
@@ -1,7 +1,11 @@
|
|
import { createApp, watchEffect } from 'vue';
|
|
import { createApp, watchEffect } from 'vue';
|
|
|
|
|
|
import { registerAccessDirective } from '@vben/access';
|
|
import { registerAccessDirective } from '@vben/access';
|
|
-import { initTippy } from '@vben/common-ui';
|
|
|
|
|
|
+import {
|
|
|
|
+ initTippy,
|
|
|
|
+ setDefaultDrawerProps,
|
|
|
|
+ setDefaultModalProps,
|
|
|
|
+} from '@vben/common-ui';
|
|
import { preferences } from '@vben/preferences';
|
|
import { preferences } from '@vben/preferences';
|
|
import { initStores } from '@vben/stores';
|
|
import { initStores } from '@vben/stores';
|
|
import '@vben/styles';
|
|
import '@vben/styles';
|
|
@@ -19,6 +23,15 @@ import { router } from './router';
|
|
async function bootstrap(namespace: string) {
|
|
async function bootstrap(namespace: string) {
|
|
// 初始化组件适配器
|
|
// 初始化组件适配器
|
|
await initComponentAdapter();
|
|
await initComponentAdapter();
|
|
|
|
+ // 设置弹窗的默认配置
|
|
|
|
+ setDefaultModalProps({
|
|
|
|
+ fullscreenButton: false,
|
|
|
|
+ zIndex: 2000,
|
|
|
|
+ });
|
|
|
|
+ // 设置抽屉的默认配置
|
|
|
|
+ setDefaultDrawerProps({
|
|
|
|
+ zIndex: 2000,
|
|
|
|
+ });
|
|
const app = createApp(App);
|
|
const app = createApp(App);
|
|
|
|
|
|
// 注册Element Plus提供的v-loading指令
|
|
// 注册Element Plus提供的v-loading指令
|