feat: support overflowedIndicator slot #4515

pull/4520/head
tangjinzhou 2021-08-13 22:12:29 +08:00
parent 6479864a6f
commit af0620d14e
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export default defineComponent({
'click', 'click',
'update:activeKey', 'update:activeKey',
], ],
slots: ['expandIcon'], slots: ['expandIcon', 'overflowedIndicator'],
setup(props, { slots, emit }) { setup(props, { slots, emit }) {
const { prefixCls, direction } = useConfigInject('menu', props); const { prefixCls, direction } = useConfigInject('menu', props);
const store = ref<Record<string, StoreMenuInfo>>({}); const store = ref<Record<string, StoreMenuInfo>>({});
@ -396,7 +396,7 @@ export default defineComponent({
{child} {child}
</MenuContextProvider> </MenuContextProvider>
)); ));
const overflowedIndicator = <EllipsisOutlined />; const overflowedIndicator = slots.overflowedIndicator?.() || <EllipsisOutlined />;
return ( return (
<Overflow <Overflow

2
v2-doc

@ -1 +1 @@
Subproject commit e5fb2accb9cf5e02e2fd0011310a70041b5ff7a1 Subproject commit 7a7b52df8b3b69d8b1a8b8dcd96e1b0f7bb3f8c9