diff --git a/components/menu/src/Divider.tsx b/components/menu/src/Divider.tsx index bdd8409f3..99357752e 100644 --- a/components/menu/src/Divider.tsx +++ b/components/menu/src/Divider.tsx @@ -1,13 +1,12 @@ import { defineComponent } from 'vue'; +import { useInjectMenu } from './hooks/useMenuContext'; export default defineComponent({ name: 'AMenuDivider', - props: { - prefixCls: String, - }, - setup(props) { + setup() { + const { prefixCls } = useInjectMenu(); return () => { - return
; + return ; }; }, });