mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-14 13:02:00 +08:00
refactor(web-antd): 移除ConfigProvider的variant属性并设置默认弹窗配置
移除ConfigProvider组件中不再需要的variant属性 设置默认弹窗配置,禁用全屏按钮并添加缩放动画效果
This commit is contained in:
@@ -36,7 +36,7 @@ useUploadTip();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ConfigProvider :locale="antdLocale" :theme="tokenTheme" variant="outlined">
|
||||
<ConfigProvider :locale="antdLocale" :theme="tokenTheme">
|
||||
<App>
|
||||
<RouterView />
|
||||
<PopupContext />
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { createApp, watchEffect } from 'vue';
|
||||
|
||||
import { registerAccessDirective } from '@vben/access';
|
||||
import { setDefaultModalProps } from '@vben/common-ui';
|
||||
import { registerLoadingDirective } from '@vben/common-ui/es/loading';
|
||||
import { preferences } from '@vben/preferences';
|
||||
import { initStores } from '@vben/stores';
|
||||
@@ -25,9 +26,10 @@ async function bootstrap(namespace: string) {
|
||||
await initSetupVbenForm();
|
||||
|
||||
// // 设置弹窗的默认配置
|
||||
// setDefaultModalProps({
|
||||
// fullscreenButton: false,
|
||||
// });
|
||||
setDefaultModalProps({
|
||||
fullscreenButton: false,
|
||||
animationType: 'scale',
|
||||
});
|
||||
// // 设置抽屉的默认配置
|
||||
// setDefaultDrawerProps({
|
||||
// zIndex: 1020,
|
||||
|
||||
Reference in New Issue
Block a user