Revert "feat(AppNaiveUIProvider): 添加对 NModal 的支持"
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 3m58s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m21s

This reverts commit 75f461df0f.
This commit is contained in:
严浩
2025-10-30 14:05:19 +08:00
parent 75f461df0f
commit 21676c11ff

View File

@@ -14,7 +14,6 @@ const themeOverrides: GlobalThemeOverrides = {
const ContextHolder: FunctionalComponent = () => {
window.$nLoadingBar = useLoadingBar();
window.$nDialog = useDialog();
window.$nModal = useModal();
window.$nMessage = useMessage();
window.$nNotification = useNotification();
return createTextVNode();
@@ -26,7 +25,6 @@ declare global {
export interface Window {
$nLoadingBar?: import('naive-ui').LoadingBarProviderInst;
$nDialog?: import('naive-ui').DialogProviderInst;
$nModal?: import('naive-ui').ModalProviderInst;
$nMessage?: import('naive-ui').MessageProviderInst;
$nNotification?: import('naive-ui').NotificationProviderInst;
}
@@ -45,14 +43,12 @@ declare global {
>
<NLoadingBarProvider>
<NDialogProvider>
<NModalProvider>
<NNotificationProvider>
<NMessageProvider>
<ContextHolder />
<slot></slot>
</NMessageProvider>
</NNotificationProvider>
</NModalProvider>
<NNotificationProvider>
<NMessageProvider>
<ContextHolder />
<slot></slot>
</NMessageProvider>
</NNotificationProvider>
</NDialogProvider>
</NLoadingBarProvider>
</NConfigProvider>