(component): [subMenuPopup]横向菜单的子菜单 trigger 统一为 hover

This commit is contained in:
sight 2022-09-10 21:20:15 +08:00
parent 07d0bc7e6a
commit c6238e3c81

View File

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