✨(component): [subMenuPopup]横向菜单的子菜单 trigger 统一为 hover
This commit is contained in:
parent
07d0bc7e6a
commit
c6238e3c81
@ -37,15 +37,11 @@ const computedExpandIcon = computed(() => {
|
|||||||
const computedPlacement = computed(() => {
|
const computedPlacement = computed(() => {
|
||||||
return !isTree.value && level.value === 2 ? "bottom-start" : "right-start";
|
return !isTree.value && level.value === 2 ? "bottom-start" : "right-start";
|
||||||
});
|
});
|
||||||
|
|
||||||
const computedTrigger = computed(() => {
|
|
||||||
return !isTree.value && level.value === 2 ? "click" : "hover";
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<lay-dropdown
|
<lay-dropdown
|
||||||
:trigger="computedTrigger"
|
trigger="hover"
|
||||||
:placement="computedPlacement"
|
:placement="computedPlacement"
|
||||||
:autoFitMinWidth="false"
|
:autoFitMinWidth="false"
|
||||||
:contentOffset="3"
|
:contentOffset="3"
|
||||||
|
Loading…
Reference in New Issue
Block a user