fix: dropdown divider disappear, close #6365 (#6369)

pull/6373/head
zkwolf 2023-03-20 13:32:23 +08:00 committed by GitHub
parent f265a7bb02
commit 3653f37d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import useConfigInject from '../../config-provider/hooks/useConfigInject';
import type { ExtractPropTypes } from 'vue'; import type { ExtractPropTypes } from 'vue';
import { computed, defineComponent } from 'vue'; import { computed, defineComponent } from 'vue';
import { useInjectMenu } from './hooks/useMenuContext';
export const menuDividerProps = () => ({ export const menuDividerProps = () => ({
prefixCls: String, prefixCls: String,
@ -14,7 +14,7 @@ export default defineComponent({
name: 'AMenuDivider', name: 'AMenuDivider',
props: menuDividerProps(), props: menuDividerProps(),
setup(props) { setup(props) {
const { prefixCls } = useConfigInject('menu', props); const { prefixCls } = useInjectMenu();
const cls = computed(() => { const cls = computed(() => {
return { return {
[`${prefixCls.value}-item-divider`]: true, [`${prefixCls.value}-item-divider`]: true,