Skip to content

Commit af0620d

Browse files
committed
feat: support overflowedIndicator slot #4515
1 parent 6479864 commit af0620d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/menu/src/Menu.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default defineComponent({
6868
'click',
6969
'update:activeKey',
7070
],
71-
slots: ['expandIcon'],
71+
slots: ['expandIcon', 'overflowedIndicator'],
7272
setup(props, { slots, emit }) {
7373
const { prefixCls, direction } = useConfigInject('menu', props);
7474
const store = ref<Record<string, StoreMenuInfo>>({});
@@ -396,7 +396,7 @@ export default defineComponent({
396396
{child}
397397
</MenuContextProvider>
398398
));
399-
const overflowedIndicator = <EllipsisOutlined />;
399+
const overflowedIndicator = slots.overflowedIndicator?.() || <EllipsisOutlined />;
400400

401401
return (
402402
<Overflow

v2-doc

0 commit comments

Comments
 (0)