perf: menu

pull/4199/head
tangjinzhou 2021-06-09 21:55:15 +08:00
parent 791ae38bf8
commit 6ae707edf5
3 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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

@ -1 +1 @@
Subproject commit 6819090fbcc94b248bc761d5f26162f29c04b2ef
Subproject commit 0f6d531d088d5283250c8cec1c7e8be0e0d36a36