feat: support overflowedIndicator slot #4515
parent
6479864a6f
commit
af0620d14e
|
@ -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>>({});
|
||||
|
@ -396,7 +396,7 @@ export default defineComponent({
|
|||
{child}
|
||||
</MenuContextProvider>
|
||||
));
|
||||
const overflowedIndicator = <EllipsisOutlined />;
|
||||
const overflowedIndicator = slots.overflowedIndicator?.() || <EllipsisOutlined />;
|
||||
|
||||
return (
|
||||
<Overflow
|
||||
|
|
2
v2-doc
2
v2-doc
|
@ -1 +1 @@
|
|||
Subproject commit e5fb2accb9cf5e02e2fd0011310a70041b5ff7a1
|
||||
Subproject commit 7a7b52df8b3b69d8b1a8b8dcd96e1b0f7bb3f8c9
|
Loading…
Reference in New Issue