perf: menu
parent
791ae38bf8
commit
6ae707edf5
|
@ -372,7 +372,7 @@ export default defineComponent({
|
|||
siderCollapsed,
|
||||
defaultMotions: computed(() => (isMounted.value ? defaultMotions : null)),
|
||||
motion: computed(() => (isMounted.value ? props.motion : null)),
|
||||
overflowDisabled: computed(() => props.disabledOverflow),
|
||||
overflowDisabled: computed(() => undefined),
|
||||
onOpenChange: onInternalOpenChange,
|
||||
onItemClick: onInternalClick,
|
||||
registerMenuInfo,
|
||||
|
|
|
@ -260,13 +260,13 @@ export default defineComponent({
|
|||
</div>
|
||||
);
|
||||
|
||||
if (!overflowDisabled.value) {
|
||||
if (!overflowDisabled.value && mode.value !== 'inline') {
|
||||
const triggerMode = triggerModeRef.value;
|
||||
titleNode = (
|
||||
<PopupTrigger
|
||||
mode={triggerMode}
|
||||
prefixCls={subMenuPrefixClsValue}
|
||||
visible={!props.internalPopupClose && open.value && mode.value !== 'inline'}
|
||||
visible={!props.internalPopupClose && open.value}
|
||||
popupClassName={popupClassName.value}
|
||||
popupOffset={props.popupOffset}
|
||||
disabled={mergedDisabled.value}
|
||||
|
|
2
v2-doc
2
v2-doc
|
@ -1 +1 @@
|
|||
Subproject commit 6819090fbcc94b248bc761d5f26162f29c04b2ef
|
||||
Subproject commit 0f6d531d088d5283250c8cec1c7e8be0e0d36a36
|
Loading…
Reference in New Issue