From 75f461df0fe62ae63884e05abd052432fe7b8033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Thu, 30 Oct 2025 14:00:43 +0800 Subject: [PATCH] =?UTF-8?q?feat(AppNaiveUIProvider):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AF=B9=20NModal=20=E7=9A=84=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppNaiveUIProvider.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/AppNaiveUIProvider.vue b/src/AppNaiveUIProvider.vue index 7d46348..4624c1d 100644 --- a/src/AppNaiveUIProvider.vue +++ b/src/AppNaiveUIProvider.vue @@ -14,6 +14,7 @@ const themeOverrides: GlobalThemeOverrides = { const ContextHolder: FunctionalComponent = () => { window.$nLoadingBar = useLoadingBar(); window.$nDialog = useDialog(); + window.$nModal = useModal(); window.$nMessage = useMessage(); window.$nNotification = useNotification(); return createTextVNode(); @@ -25,6 +26,7 @@ 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; } @@ -43,12 +45,14 @@ declare global { > - - - - - - + + + + + + + +