From af0620d14e3f02cface68017df682d0bd14a3328 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 13 Aug 2021 22:12:29 +0800 Subject: [PATCH] feat: support overflowedIndicator slot #4515 --- components/menu/src/Menu.tsx | 4 ++-- v2-doc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/menu/src/Menu.tsx b/components/menu/src/Menu.tsx index 58ccd6013..407287680 100644 --- a/components/menu/src/Menu.tsx +++ b/components/menu/src/Menu.tsx @@ -68,7 +68,7 @@ export default defineComponent({ 'click', 'update:activeKey', ], - slots: ['expandIcon'], + slots: ['expandIcon', 'overflowedIndicator'], setup(props, { slots, emit }) { const { prefixCls, direction } = useConfigInject('menu', props); const store = ref>({}); @@ -396,7 +396,7 @@ export default defineComponent({ {child} )); - const overflowedIndicator = ; + const overflowedIndicator = slots.overflowedIndicator?.() || ; return (