Skip to content

Commit

Permalink
feat: support overflowedIndicator slot #4515
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Aug 13, 2021
1 parent 6479864 commit af0620d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/menu/src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Record<string, StoreMenuInfo>>({});
Expand Down Expand Up @@ -396,7 +396,7 @@ export default defineComponent({
{child}
</MenuContextProvider>
));
const overflowedIndicator = <EllipsisOutlined />;
const overflowedIndicator = slots.overflowedIndicator?.() || <EllipsisOutlined />;

return (
<Overflow
Expand Down
2 changes: 1 addition & 1 deletion v2-doc

0 comments on commit af0620d

Please sign in to comment.