From 980ca7f4ff606ed0cd1e6fab5760ef475bc6557f Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 10 Jun 2021 21:54:03 +0800 Subject: [PATCH] fix: menu divider class error #4195 --- components/menu/src/Divider.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/menu/src/Divider.tsx b/components/menu/src/Divider.tsx index bdd8409f3a..99357752e2 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
  • ; }; }, });