refactor(web-antd): 移除ConfigProvider的variant属性并设置默认弹窗配置

移除ConfigProvider组件中不再需要的variant属性
设置默认弹窗配置,禁用全屏按钮并添加缩放动画效果
This commit is contained in:
dap
2026-01-20 11:54:35 +08:00
parent 31b332a87f
commit c1b886e77f
2 changed files with 6 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ useUploadTip();
</script>
<template>
<ConfigProvider :locale="antdLocale" :theme="tokenTheme" variant="outlined">
<ConfigProvider :locale="antdLocale" :theme="tokenTheme">
<App>
<RouterView />
<PopupContext />

View File

@@ -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,