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