From 3653f37d6bcc531735431bdf3095ccb771f867da Mon Sep 17 00:00:00 2001 From: zkwolf Date: Mon, 20 Mar 2023 13:32:23 +0800 Subject: [PATCH] fix: dropdown divider disappear, close #6365 (#6369) --- components/menu/src/Divider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/menu/src/Divider.tsx b/components/menu/src/Divider.tsx index 4aac7c3e5..e6b08d4df 100644 --- a/components/menu/src/Divider.tsx +++ b/components/menu/src/Divider.tsx @@ -1,6 +1,6 @@ -import useConfigInject from '../../config-provider/hooks/useConfigInject'; import type { ExtractPropTypes } from 'vue'; import { computed, defineComponent } from 'vue'; +import { useInjectMenu } from './hooks/useMenuContext'; export const menuDividerProps = () => ({ prefixCls: String, @@ -14,7 +14,7 @@ export default defineComponent({ name: 'AMenuDivider', props: menuDividerProps(), setup(props) { - const { prefixCls } = useConfigInject('menu', props); + const { prefixCls } = useInjectMenu(); const cls = computed(() => { return { [`${prefixCls.value}-item-divider`]: true,