From d72774afd70af6ac606f0d3e3876f1ecb3a32394 Mon Sep 17 00:00:00 2001 From: Eiinu Date: Thu, 7 Sep 2023 13:55:03 +0800 Subject: [PATCH] fix(configprovider): slot is not reactive (#2545) --- src/packages/__VUE/configprovider/common.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/packages/__VUE/configprovider/common.ts b/src/packages/__VUE/configprovider/common.ts index 995410ad33..5abfae09bf 100644 --- a/src/packages/__VUE/configprovider/common.ts +++ b/src/packages/__VUE/configprovider/common.ts @@ -63,7 +63,6 @@ export const component = (tag: string) => { }; const themeStyle = computed(() => mapThemeVarsToCSSVars(props.themeVars)); - const defaultSlots = slots.default?.(); return () => { return h( @@ -72,7 +71,7 @@ export const component = (tag: string) => { class: `nut-theme-${props.theme}`, style: themeStyle.value }, - defaultSlots + slots.default?.() ); }; }