Skip to content

Commit

Permalink
fix(configprovider): slot is not reactive (jd-opensource#2545)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Sep 7, 2023
1 parent edeb584 commit d72774a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/packages/__VUE/configprovider/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export const component = (tag: string) => {
};

const themeStyle = computed(() => mapThemeVarsToCSSVars(props.themeVars));
const defaultSlots = slots.default?.();

return () => {
return h(
Expand All @@ -72,7 +71,7 @@ export const component = (tag: string) => {
class: `nut-theme-${props.theme}`,
style: themeStyle.value
},
defaultSlots
slots.default?.()
);
};
}
Expand Down

0 comments on commit d72774a

Please sign in to comment.